diff --git a/src/Cockpit/panel.cxx b/src/Cockpit/panel.cxx index a8413cc9b..14810b401 100644 --- a/src/Cockpit/panel.cxx +++ b/src/Cockpit/panel.cxx @@ -48,9 +48,12 @@ #define WIN_W 1024 #define WIN_H 768 -#ifdef NONE -#pragma warn A sloppy coder has defined NONE as a macro!!! -#undef NONE +#ifdef defined( NONE ) && defined( _MSC_VER ) +# pragma message( "A sloppy coder has defined NONE as a macro!!!" ) +# undef NONE +#elif defined( NONE ) +# pragma warn A sloppy coder has defined NONE as a macro!!! +# undef NONE #endif diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 2a0802dda..0a841f6da 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -1515,10 +1515,6 @@ int mainLoop( int argc, char **argv ) { argc = ccommand( &argv ); #endif -#ifdef HAVE_BC5PLUS - _control87(MCW_EM, MCW_EM); /* defined in float.h */ -#endif - // set default log levels sglog().setLogLevels( SG_ALL, SG_INFO ); @@ -1859,11 +1855,15 @@ int mainLoop( int argc, char **argv ) { // Main entry point; catch any exceptions that have made it this far. int main ( int argc, char **argv ) { -#ifdef _MSC_VER +#if defined( _MSC_VER ) && defined( DEBUG ) // Christian, we should document what this does _control87( _EM_INEXACT, _MCW_EM ); #endif +#if defined( HAVE_BC5PLUS ) + _control87(MCW_EM, MCW_EM); /* defined in float.h */ +#endif + // FIXME: add other, more specific // exceptions. try { diff --git a/src/Scenery/tileentry.cxx b/src/Scenery/tileentry.cxx index 6fb402921..b55cf8dec 100644 --- a/src/Scenery/tileentry.cxx +++ b/src/Scenery/tileentry.cxx @@ -342,6 +342,8 @@ void *fgBillboard( ssgBranch *lightmaps, ssgVertexArray *light_maps, ssgSimpleSt leaf->setState( lightmap_state ); lightmaps->addKid( leaf ); } + + return NULL; } ssgBranch* FGTileEntry::gen_runway_lights( ssgVertexArray *points,ssgVertexArray *normal,