[vlc-devel] commit: configure: Add -Werror= bad-function-cast for --enable-warnings-as-error. (Pierre d'Herbemont )

git version control git at videolan.org
Fri Aug 21 02:19:02 CEST 2009


vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Fri Aug 21 02:18:18 2009 +0200| [549bc47d24ce64848876d62ea1b5e92a1edee802] | committer: Pierre d'Herbemont 

configure: Add -Werror=bad-function-cast for --enable-warnings-as-error.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=549bc47d24ce64848876d62ea1b5e92a1edee802
---

 configure.ac |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 84742e6..fa48e50 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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],




More information about the vlc-devel mailing list