Reduce warnings noise/signal a bit under gcc4

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37785 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin
2010-07-28 13:36:25 +00:00
parent 2c6ebfaaea
commit a67d485cf3
2 changed files with 10 additions and 10 deletions
+4 -4
View File
@@ -29,7 +29,7 @@ __glutStrdup(const char *string)
} }
void void
__glutWarning(char *format,...) __glutWarning(const char *format,...)
{ {
va_list args; va_list args;
@@ -42,7 +42,7 @@ __glutWarning(char *format,...)
} }
/* CENTRY */ /* CENTRY */
void APIENTRY void APIENTRY
glutReportErrors(void) glutReportErrors(void)
{ {
GLenum error; GLenum error;
@@ -53,7 +53,7 @@ glutReportErrors(void)
/* ENDCENTRY */ /* ENDCENTRY */
void void
__glutFatalError(char *format,...) __glutFatalError(const char *format,...)
{ {
va_list args; va_list args;
@@ -67,7 +67,7 @@ __glutFatalError(char *format,...)
} }
void void
__glutFatalUsage(char *format,...) __glutFatalUsage(const char *format,...)
{ {
va_list args; va_list args;
+6 -6
View File
@@ -3,8 +3,8 @@
/* Copyright (c) Mark J. Kilgard, 1994, 1997, 1998. */ /* Copyright (c) Mark J. Kilgard, 1994, 1997, 1998. */
/* This program is freely distributable without licensing fees /* This program is freely distributable without licensing fees
and is provided without guarantee or warrantee expressed or and is provided without guarantee or warrantee expressed or
implied. This program is -not- in the public domain. */ implied. This program is -not- in the public domain. */
#if defined(__CYGWIN32__) #if defined(__CYGWIN32__)
@@ -169,7 +169,7 @@ extern int sys$gettim(struct timeval *);
#define XSTATICGRAY (NUM_GLXCAPS + 3) /* Used as #define XSTATICGRAY (NUM_GLXCAPS + 3) /* Used as
mask bit mask bit
for "any for "any
visual type visual type
selected". */ selected". */
#define XGRAYSCALE (NUM_GLXCAPS + 4) #define XGRAYSCALE (NUM_GLXCAPS + 4)
#define XSTATICCOLOR (NUM_GLXCAPS + 5) #define XSTATICCOLOR (NUM_GLXCAPS + 5)
@@ -734,9 +734,9 @@ extern "C" {
#endif #endif
/* private routines from glut_util.c */ /* private routines from glut_util.c */
extern char * __glutStrdup(const char *string); extern char * __glutStrdup(const char *string);
extern void __glutWarning(char *format,...); extern void __glutWarning(const char *format,...);
extern void __glutFatalError(char *format,...); extern void __glutFatalError(const char *format,...);
extern void __glutFatalUsage(char *format,...); extern void __glutFatalUsage(const char *format,...);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif