summaryrefslogtreecommitdiff
path: root/glx
diff options
context:
space:
mode:
authorJamey Sharp <jamey@minilop.net>2009-10-28 17:48:19 -0700
committerKeith Packard <keithp@keithp.com>2009-10-28 18:59:07 -0700
commitfab74d1081270fb8f1d231e6e10d10aa33e164da (patch)
tree2c660be77c367306fb228f7cfaf232e5f1027776 /glx
parent239435875d6a92ed31731b500a992a3af0943594 (diff)
Suppress certain GCC warnings in auto-generated code.
- Don't warn for references to deprecated functions in xorg_symbols. - Ignore functions generated by gl_apitemp.py that are never used. Signed-off-by: Jamey Sharp <jamey@minilop.net> Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'glx')
-rw-r--r--glx/glapi.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/glx/glapi.c b/glx/glapi.c
index fa3808e4d..d6a568e88 100644
--- a/glx/glapi.c
+++ b/glx/glapi.c
@@ -114,10 +114,15 @@ warn(void)
}
}
+#if defined(__GNUC__) && (__GNUC__ > 2)
+#define possibly_unused __attribute((unused))
+#else
+#define possibly_unused
+#endif
#define KEYWORD1 static
#define KEYWORD1_ALT static
-#define KEYWORD2 GLAPIENTRY
+#define KEYWORD2 GLAPIENTRY possibly_unused
#define NAME(func) NoOp##func
#define F NULL