Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
libmpeg2
Commits
9027a46e
Commit
9027a46e
authored
Jun 20, 2002
by
Michel Lespinasse
Browse files
when disabling -Werror, still use -Wall
parent
e5452778
Changes
1
Hide whitespace changes
Inline
Side-by-side
mpeg2dec/configure.in
View file @
9027a46e
...
...
@@ -23,6 +23,10 @@ elif test x"$GCC" = x"yes"; then
dnl GCC-specific flags
dnl -Wall -Werror moved to the end to not disturb the configure script
dnl -Wall
OPT_CFLAGS="$CFLAGS -Wall"
AC_TRY_CFLAGS([$OPT_CFLAGS],[CFLAGS=$OPT_CFLAGS])
dnl -O3
changequote(<<,>>)
OPT_CFLAGS=`echo "$CFLAGS"|sed "s/-O[0-9]*//g"`
...
...
@@ -111,7 +115,7 @@ AC_ARG_ENABLE([warnings],
[ --disable-warnings do not treat warnings as errors])
if test x"$enable_warnings" != x"no" -a x"$GCC" = x"yes"; then
dnl compiler warnings
OPT_CFLAGS="$CFLAGS
-Wall
-Werror"
OPT_CFLAGS="$CFLAGS -Werror"
AC_TRY_CFLAGS([$OPT_CFLAGS],[CFLAGS=$OPT_CFLAGS])
elif test x"$TENDRA" = x"yes"; then
dnl TenDRA portability checking compiler
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment