[PATCH video-tseng] config: remove redundant compiler flags

Gaetan Nadon memsize at videotron.ca
Thu Apr 8 11:48:33 PDT 2010


These are available using --enable-strict-compilation
Use same configure option as all x.org modules
Only GCC was covered, not SUNCC or INTELCC
Introduced in commit 85397a4ef7a3a13f7e2940cb0e5c2fdbfea4c695

Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
---
 configure.ac    |    4 ----
 src/Makefile.am |    2 +-
 2 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/configure.ac b/configure.ac
index 9daadc6..51376c9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -45,10 +45,6 @@ AC_DISABLE_STATIC
 AC_PROG_LIBTOOL
 AC_PROG_CC
 
-if test "x$GCC" = "xyes"; then
-    CFLAGS="$CFLAGS -Wall -pedantic"
-fi
-
 AH_TOP([#include "xorg-server.h"])
 
 AC_ARG_WITH(xorg-module-dir,
diff --git a/src/Makefile.am b/src/Makefile.am
index 114f8e9..bf3a03a 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -23,7 +23,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 = $(XORG_CFLAGS) $(CWARNFLAGS)
 tseng_drv_la_LTLIBRARIES = tseng_drv.la
 tseng_drv_la_LDFLAGS = -module -avoid-version
 tseng_drv_ladir = @moduledir@/drivers
-- 
1.6.0.4



More information about the xorg-devel mailing list