[gnome-getting-started-docs] Turn on compiler warnings



commit 88c4e431eaa99127f775909ee37b9a51114c0e97
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Nov 2 16:13:27 2012 -0400

    Turn on compiler warnings

 configure.in       |   10 ++++++++++
 player/Makefile.am |    2 +-
 2 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/configure.in b/configure.in
index f6f7826..4679d50 100644
--- a/configure.in
+++ b/configure.in
@@ -9,6 +9,16 @@ YELP_HELP_INIT
 AM_MAINTAINER_MODE([enable])
 
 PKG_CHECK_MODULES(PLAYER, [clutter-gst-1.0 clutter-x11-1.0])
+
+if test "$GCC" = "yes"; then
+        CFLAGS="\
+        -Wall \
+        -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
+        -Wnested-externs -Wpointer-arith \
+        -Wcast-align -Wsign-compare \
+        -Werror $CFLAGS"
+fi
+
 AC_SUBST(CFLAGS)
 
 AM_CONFIG_HEADER(config.h)
diff --git a/player/Makefile.am b/player/Makefile.am
index 4593440..19e262c 100644
--- a/player/Makefile.am
+++ b/player/Makefile.am
@@ -2,5 +2,5 @@
 noinst_PROGRAMS = player
 
 player_SOURCES = player.c
-player_CFLAGS = $(PLAYER_CFLAGS)
+player_CFLAGS = $(PLAYER_CFLAGS) -DCLUTTER_DISABLE_DEPRECATION_WARNINGS
 player_LDFLAGS = $(PLAYER_LIBS)



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