mirror of https://code.videolan.org/videolan/vlc
configure: remove return-type from Werror warnings
Some "no return statement in function returning non-void" warnings are definitely not errors, and cannot be silenced without introducing dead code, which is arguably just worse.
This commit is contained in:
parent
7c3a21bab6
commit
0a761fdb9f
|
@ -1016,7 +1016,7 @@ AC_ARG_ENABLE(warnings-as-error,
|
||||||
AS_IF([test "${enable_warnings_as_error}" = "yes"], [
|
AS_IF([test "${enable_warnings_as_error}" = "yes"], [
|
||||||
RDC_PROG_CC_WERRORFLAGS([unused-function unused-label unused-value unused-parameter unused-variable unused \
|
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 \
|
missing-braces nonnull parentheses uninitialized address enum-compare undef comment switch \
|
||||||
bad-function-cast implicit sequence-point return-type strict-aliasing array-bounds missing-parameter-type \
|
bad-function-cast implicit sequence-point strict-aliasing array-bounds missing-parameter-type \
|
||||||
overflow int-to-pointer-cast pointer-to-int-cast div-by-zero overflow ignored])
|
overflow int-to-pointer-cast pointer-to-int-cast div-by-zero overflow ignored])
|
||||||
])
|
])
|
||||||
AC_SUBST(CFLAGS_WERROR)
|
AC_SUBST(CFLAGS_WERROR)
|
||||||
|
|
Loading…
Reference in New Issue