[PATCH 07/10] xf86-input-acecad: Use XORG_CWARNFLAGS.

Paulo Cesar Pereira de Andrade pcpa at mandriva.com.br
Fri Feb 13 10:02:33 PST 2009


  Usage of more complete compiler warnings can help in detecting
several common problems in drivers.

Signed-off-by: Paulo Cesar Pereira de Andrade <pcpa at mandriva.com.br>
---
 configure.ac    |    1 +
 src/Makefile.am |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index bf4c6eb..070cca4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -42,6 +42,7 @@ AC_PROG_CC
 # Require xorg-macros: XORG_CHANGELOG
 m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.2 or later before running autoconf/autogen])])
 XORG_MACROS_VERSION(1.2)
+XORG_CWARNFLAGS
 
 AH_TOP([#include "xorg-server.h"])
 
diff --git a/src/Makefile.am b/src/Makefile.am
index 6307bd4..d131fa9 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -24,7 +24,7 @@
 # -avoid-version prevents gratuitous .0.0.0 version numbers on the end
 # _ladir passes a dummy rpath to libtool so the thing will actually link
 # TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
-AM_CFLAGS = $(XORG_CFLAGS)
+AM_CFLAGS = $(CWARNFLAGS) $(XORG_CFLAGS)
 
 acecad_drv_la_LTLIBRARIES = acecad_drv.la
 acecad_drv_la_LDFLAGS = -module -avoid-version
-- 
1.6.1.3



More information about the xorg-devel mailing list