mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 14:51:11 +01:00
Add the -Wlogical-op switch when building with GCC 4.3 or later.
This commit is contained in:
parent
9e0ed8136a
commit
9b0a4cbe92
1 changed files with 1 additions and 1 deletions
|
@ -1494,7 +1494,7 @@ if test x$enable_gcc_warnings = xyes || test x$enable_gcc_warnings_advisory = xy
|
||||||
if test x$have_gcc43 = xyes ; then
|
if test x$have_gcc43 = xyes ; then
|
||||||
# These warnings break gcc 4.2 and work on gcc 4.3
|
# These warnings break gcc 4.2 and work on gcc 4.3
|
||||||
# XXXX020 See if any of these work with earlier versions.
|
# XXXX020 See if any of these work with earlier versions.
|
||||||
CFLAGS="$CFLAGS -Wextra -Warray-bounds"
|
CFLAGS="$CFLAGS -Wextra -Warray-bounds -Wlogical-op"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test x$have_shorten64_flag = xyes ; then
|
if test x$have_shorten64_flag = xyes ; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue