extinguish many warnings (at least for gcc)
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user