[PATCH] glx: Ignore unused function warnings

Keith Packard keithp at keithp.com
Fri Feb 7 16:10:51 PST 2014


indirect_dispatch_swap.c, which is autogenerated from a mesa script,
contains the function 'bswap_CARD64', which is never used in the
file. While it would be nice to fix this upstream, that's "hard", so
this change causes these warnings to be ignored for just this
directory.

Signed-off-by: Keith Packard <keithp at keithp.com>
---
 glx/Makefile.am | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/glx/Makefile.am b/glx/Makefile.am
index 54e8140..9838581 100644
--- a/glx/Makefile.am
+++ b/glx/Makefile.am
@@ -27,6 +27,8 @@ if DRI2_AIGLX
 AM_CPPFLAGS += -I$(top_srcdir)/hw/xfree86/dri2
 endif
 
+AM_CFLAGS += -Wno-unused-function
+
 indirect_sources =				\
 	indirect_dispatch.c			\
 	indirect_dispatch.h			\
-- 
1.8.5.3



More information about the xorg-devel mailing list