]> git.sesse.net Git - vlc/commitdiff
configure: Add -Werror=bad-function-cast for --enable-warnings-as-error.
authorPierre d'Herbemont <pdherbemont@free.fr>
Fri, 21 Aug 2009 00:18:18 +0000 (02:18 +0200)
committerPierre d'Herbemont <pdherbemont@free.fr>
Fri, 21 Aug 2009 00:18:18 +0000 (02:18 +0200)
configure.ac

index 84742e68b7256281fe7a36be187a249d40fcebcf..fa48e50fc95b398335bb2c727b164778ba80e1d1 100644 (file)
@@ -1010,8 +1010,9 @@ AC_ARG_ENABLE(warnings-as-error,
       AS_HELP_STRING([--enable-warnings-as-error],[Treat acceptable warnings as error (default in debug)]),, [enable_warnings_as_error="$enable_debug"])
 AS_IF([test "${enable_warnings_as_error}" = "yes"], [
     RDC_PROG_CC_WERRORFLAGS([unused-function unused-label unused-value unused-parameter unused-variable unused \
-     missing-braces nonnull parentheses uninitialized address enum-compare undef comment switch ignored])
-    ])
+     missing-braces nonnull parentheses uninitialized address enum-compare undef comment switch \
+     bad-function-cast ignored])
+])
 
 dnl Check for various optimization flags
 AC_CACHE_CHECK([if \$CC accepts -Os],