From: dooglus Date: Wed, 12 Sep 2007 00:24:18 +0000 (+0000) Subject: Reinstate the -Wno-unused-parameter flag, because when building a non-debug build... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=03c59ee4d600ee9aa075710889b5a94fdafb353a;p=synfig.git Reinstate the -Wno-unused-parameter flag, because when building a non-debug build, the 'assert()'s don't get compiled, leading to a whole lot of warnings about an unused parameter in value.h. git-svn-id: http://svn.voria.com/code@655 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/config/subs.m4 b/synfig-core/trunk/config/subs.m4 index 6a87093..571ffd3 100644 --- a/synfig-core/trunk/config/subs.m4 +++ b/synfig-core/trunk/config/subs.m4 @@ -19,9 +19,9 @@ AC_DEFUN([AC_ARG_WARNINGS], # -W is now known as -Wextra, but that's not known by gcc 2 or 3 case "$gtkmm_enable_warnings" in none|no) gtkmm_warning_flags='';; - minimum|yes) gtkmm_warning_flags='-Wall';; - maximum) gtkmm_warning_flags='-Wall -W';; - hardcore) gtkmm_warning_flags='-Wall -W -Werror';; + minimum|yes) gtkmm_warning_flags='-Wall -Wno-unused-parameter';; + maximum) gtkmm_warning_flags='-W -Wall -Wno-unused-parameter';; + hardcore) gtkmm_warning_flags='-W -Wall -Werror -Wno-unused-parameter';; esac gtkmm_use_flags='' diff --git a/synfig-studio/trunk/config/subs.m4 b/synfig-studio/trunk/config/subs.m4 index 7ac2264..7815530 100755 --- a/synfig-studio/trunk/config/subs.m4 +++ b/synfig-studio/trunk/config/subs.m4 @@ -19,9 +19,9 @@ AC_DEFUN([AC_ARG_WARNINGS], # -W is now known as -Wextra, but that's not known by gcc 2 or 3 case "$gtkmm_enable_warnings" in none|no) gtkmm_warning_flags='';; - minimum|yes) gtkmm_warning_flags='-Wall';; - maximum) gtkmm_warning_flags='-Wall -W';; - hardcore) gtkmm_warning_flags='-Wall -W -Werror';; + minimum|yes) gtkmm_warning_flags='-Wall -Wno-unused-parameter';; + maximum) gtkmm_warning_flags='-W -Wall -Wno-unused-parameter';; + hardcore) gtkmm_warning_flags='-W -Wall -Werror -Wno-unused-parameter';; esac gtkmm_use_flags=''