diff options
author | George Sapountzis <gsapountzis@gmail.com> | 2010-03-03 21:35:37 +0200 |
---|---|---|
committer | George Sapountzis <gsapountzis@gmail.com> | 2010-03-03 21:35:37 +0200 |
commit | fed53990de51c9050b14510a4182214afad7d613 (patch) | |
tree | 1e130bc418a9e0f465d4ee0eacca341bcdd7ffc8 | |
parent | 1be16cad81331fa890d6ea5d46e745f806a2ef12 (diff) |
glapi: enable debug for nop table
This is forward-ported from xorg glapi before sync and increases libglx.a size.
[Put lib size and RSS info here]
-rw-r--r-- | glx/glapi/glapi_nop.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/glx/glapi/glapi_nop.c b/glx/glapi/glapi_nop.c index 6a62b2069..cced279de 100644 --- a/glx/glapi/glapi_nop.c +++ b/glx/glapi/glapi_nop.c @@ -48,6 +48,8 @@ #include <stdio.h> #include "glapi/glapi.h" +#define DEBUG + #ifdef DEBUG /** @@ -75,12 +77,18 @@ NoOpUnused(void) return Warn(" function"); } +#if defined(__GNUC__) && (__GNUC__ > 2) +#define possibly_unused __attribute((unused)) +#else +#define possibly_unused +#endif + /* * Defines for the glapitemp.h functions. */ #define KEYWORD1 static #define KEYWORD1_ALT static -#define KEYWORD2 GLAPIENTRY +#define KEYWORD2 GLAPIENTRY possibly_unused #define NAME(func) NoOp##func #define DISPATCH(func, args, msg) Warn(#func); #define RETURN_DISPATCH(func, args, msg) Warn(#func); return 0 |