From 5e542aa841b9bd661123e4eb6a2355a8a828084a Mon Sep 17 00:00:00 2001 From: torsten Date: Thu, 20 Aug 2009 13:09:00 +0000 Subject: [PATCH] extinguish many warnings (at least for gcc) --- simgear/screen/TestRenderTexture.cpp | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/simgear/screen/TestRenderTexture.cpp b/simgear/screen/TestRenderTexture.cpp index 1b7e748c..1e17c3dd 100644 --- a/simgear/screen/TestRenderTexture.cpp +++ b/simgear/screen/TestRenderTexture.cpp @@ -25,8 +25,22 @@ #include #include -#define dbg_printf -//#define dbg_printf printf +// DEBUG - add a lot of noise +//#ifndef _DEBUG +//#define _DEBUG +//#endif + +#if defined (_DEBUG) +const char * get_attr_name( int val, int * pdef ); +#define dbg_printf printf +#else +#if defined (__GNUC__) +#define dbg_printf(format,args...) ((void)0) +#else // defined (__GNUC__) +#define dbg_printf( +#endif // defined (__GNUC__) +#endif // defined (_DEBUG) + void Reshape(int w, int h); @@ -64,7 +78,7 @@ static int g_currentString = 0; // Function : PrintGLerror // Description : //--------------------------------------------------------------------------- -void PrintGLerror( char *msg ) +void PrintGLerror( const char *msg ) { GLenum errCode; const GLubyte *errStr; -- 2.39.5