Commit 549bc47d authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

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

parent be3d7a79
......@@ -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],
......
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