[gnome-chess] Turn off C warnings in Makefile.am



commit 47420bb0f634cc6feca648e9bd7f3cb67b7c6f61
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Mon Oct 14 22:31:59 2013 -0500

    Turn off C warnings in Makefile.am
    
    This is a better place to do so, and all the other games are doing it.
    The user can still override it if he wants to since the flags from
    configure come last.

 configure.ac    |    9 ---------
 src/Makefile.am |    3 +++
 2 files changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 7a09514..d93b63d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -37,15 +37,6 @@ AC_PATH_PROG(APPDATA_VALIDATE, appdata-validate)
 AC_PATH_PROG(DESKTOP_FILE_VALIDATE, desktop-file-validate)
 
 dnl ###########################################################################
-dnl Disable C warnings
-dnl ###########################################################################
-GNOME_CHESS_CFLAGS="$GNOME_CHESS_CFLAGS -w"
-AC_SUBST([GNOME_CHESS_CFLAGS])
-
-TEST_CFLAGS="$TEST_CFLAGS -w"
-AC_SUBST([TEST_CFLAGS])
-
-dnl ###########################################################################
 dnl Internationalization
 dnl ###########################################################################
 
diff --git a/src/Makefile.am b/src/Makefile.am
index 1c54089..36d8dec 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -30,6 +30,7 @@ test_chess_game_SOURCES = \
        chess-game.vala \
        test-chess-game.vala
 test_chess_game_CFLAGS = \
+       -w \
        $(TEST_CFLAGS)
 test_chess_game_LDADD = \
        $(TEST_LIBS)
@@ -41,6 +42,7 @@ test_chess_pgn_SOURCES = \
        chess-pgn.vala \
        test-chess-pgn.vala
 test_chess_pgn_CFLAGS = \
+       -w \
        $(TEST_CFLAGS)
 test_chess_pgn_LDADD = \
        $(TEST_LIBS)
@@ -53,6 +55,7 @@ gnome_chess_CFLAGS = \
        -DPKGDATADIR=\"$(pkgdatadir)/\" \
        -DLOCALEDIR=\"$(localedir)\" \
        -DSYSCONFDIR=\"$(sysconfdir)\" \
+       -w \
        $(GNOME_CHESS_CFLAGS)
 
 gnome_chess_LDADD = \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]