extinguish many warnings (at least for gcc)

This commit is contained in:
torsten
2009-08-23 21:37:03 +02:00
committed by Tim Moore
parent 6d53abd5af
commit 5e542aa841
+17 -3
View File
@@ -25,8 +25,22 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#define dbg_printf // DEBUG - add a lot of noise
//#define dbg_printf printf //#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); void Reshape(int w, int h);
@@ -64,7 +78,7 @@ static int g_currentString = 0;
// Function : PrintGLerror // Function : PrintGLerror
// Description : // Description :
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void PrintGLerror( char *msg ) void PrintGLerror( const char *msg )
{ {
GLenum errCode; GLenum errCode;
const GLubyte *errStr; const GLubyte *errStr;