Commit 73f3ac7f authored by Kalev Lember's avatar Kalev Lember Committed by Zeeshan Ali

Enable compiler warnings by default

Drop the --enable-strict-cc configure option and replace it with
--enable-compile-warnings from gnome-common. This is enabled by default
to make sure warnings show up during development.

https://bugs.freedesktop.org/show_bug.cgi?id=69102
parent abbe4280
......@@ -96,11 +96,7 @@ else
fi
AM_CONDITIONAL([BUILD_GEOIP_SERVER], [test "x$build_geoip_server" = "xyes"])
dnl Strict compiler
AC_ARG_ENABLE([strict-cc],
AS_HELP_STRING([--enable-strict-cc],[Enable strict C compiler]))
AS_IF([test "x$enable_strict_cc" = "xyes"], [CFLAGS="$CFLAGS -Wall -Werror"])
GNOME_COMPILE_WARNINGS([maximum])
dnl Debugging
AC_ARG_ENABLE(debug,
......
......@@ -2,5 +2,6 @@ noinst_PROGRAMS = where-am-i
where_am_i_SOURCES = where-am-i.c
where_am_i_CFLAGS = $(GEOCLUE_CFLAGS) \
$(WARN_CFLAGS) \
-DLOCALEDIR="\"$(datadir)/locale\""
where_am_i_LDADD = $(GEOCLUE_LIBS)
......@@ -44,6 +44,7 @@ geoclue_SOURCES = \
$(NULL)
geoclue_CFLAGS = $(GEOCLUE_CFLAGS) \
$(WARN_CFLAGS) \
-DLOCALEDIR="\"$(datadir)/locale\""
geoclue_LDADD = $(GEOCLUE_LIBS) $(LIBS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment