diff options
author | Owen W. Taylor <otaylor@fishsoup.net> | 2014-05-19 18:15:39 -0400 |
---|---|---|
committer | Owen W. Taylor <otaylor@fishsoup.net> | 2014-05-19 20:51:12 -0400 |
commit | ff07d3a46aefb9e956f187fe499c5dfcd71b47c8 (patch) | |
tree | d900c098f081fd1d15827bb1e5317fe06ab5c4b1 /configure.ac | |
parent | 5d11941638fe2aef36390fdd55e66fdde2770f0d (diff) | |
download | gnome-shell-ff07d3a46aefb9e956f187fe499c5dfcd71b47c8.tar.gz |
Renable compiler warnings and fix a few that show up
The switch to GNOME_COMPILE_WARNINGS() caused -Wall and other
warnings to not actually be used since GNOME_COMPILE_WARNINGS()
just sets WARN_CFLAGS. Add WARN_CFLAGS to AM_CFLAGS so that
it takes effect.
Add -Wno-error=deprecated-declarations so that when -Werror is
enabled, we don't fail on all the deprecated cogl and clutter
symbols.
https://bugzilla.gnome.org/show_bug.cgi?id=730408
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 40ed129e0..8b0fe9469 100644 --- a/configure.ac +++ b/configure.ac @@ -223,6 +223,14 @@ fi AM_CONDITIONAL(ENABLE_MAN, test "$enable_man" != no) GNOME_COMPILE_WARNINGS([error]) +case "$WARN_CFLAGS" in + *-Werror*) + WARN_CFLAGS="$WARN_CFLAGS -Wno-error=deprecated-declarations" + ;; +esac + +AM_CFLAGS="$AM_CFLAGS $WARN_CFLAGS" +AC_SUBST(AM_CFLAGS) BROWSER_PLUGIN_DIR="${BROWSER_PLUGIN_DIR:-"\${libdir}/mozilla/plugins"}" AC_ARG_VAR([BROWSER_PLUGIN_DIR],[Where to install the plugin to]) |