Disable -Wformat-truncation
this new gcc 8 warning triggers here, but is useless for our purposes.
This commit is contained in:
parent
f68a1f50fd
commit
63f69c2bdd
1 changed files with 1 additions and 1 deletions
2
configure
vendored
2
configure
vendored
|
@ -368,7 +368,7 @@ fi
|
||||||
if ! echo "$cc" | grep -q "tcc"; then
|
if ! echo "$cc" | grep -q "tcc"; then
|
||||||
OPT1="-Wdeclaration-after-statement -fno-strict-aliasing"
|
OPT1="-Wdeclaration-after-statement -fno-strict-aliasing"
|
||||||
# we want -Wno- but gcc does not always reject unknown -Wno- options
|
# we want -Wno- but gcc does not always reject unknown -Wno- options
|
||||||
OPT2="-Wpointer-sign -Wsign-compare -Wunused-result"
|
OPT2="-Wpointer-sign -Wsign-compare -Wunused-result -Wformat-truncation"
|
||||||
if echo "$cc" | grep -q "clang"; then
|
if echo "$cc" | grep -q "clang"; then
|
||||||
OPT1="$OPT1 -fheinous-gnu-extensions"
|
OPT1="$OPT1 -fheinous-gnu-extensions"
|
||||||
OPT2="$OPT2 -Wstring-plus-int"
|
OPT2="$OPT2 -Wstring-plus-int"
|
||||||
|
|
Loading…
Reference in a new issue