mgerhardy / caveexpress

CaveExpress is a classic 2D platformer with physics-based gameplay and dozens of levels. CavePacker is a Sokoban game.
http://www.caveproductions.org/
Other
144 stars 20 forks source link

# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" with glibc 2.20 #3

Closed akien-mga closed 9 years ago

akien-mga commented 9 years ago

I get such warnings at each compilation step with glibc 2.20:

In file included from /usr/include/assert.h:35:0,
                 from src/engine/common/Pointers.h:5,
                 from src/engine/common/Common.h:4,
                 from src/engine/common/ports/Unix.h:4,
                 from src/engine/common/ports/Unix.cpp:1:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^

It seems you just need to define _DEFAULT_SOURCE to fix this warning, see (among other sources): https://ghc.haskell.org/trac/ghc/ticket/9185 http://permalink.gmane.org/gmane.comp.version-control.git/257209

mgerhardy commented 9 years ago

should be fixed - thanks for the report.