forked from len0rd/rockbox
Implement warning silencing in a cleaner way
Change-Id: Iae6356c7e9e04f4e975b1995f77a35f6252293a4
This commit is contained in:
parent
99e467e4ff
commit
27ca56d241
1 changed files with 5 additions and 0 deletions
5
tools/configure
vendored
5
tools/configure
vendored
|
|
@ -4258,6 +4258,11 @@ else
|
|||
GCCOPTS="$GCCOPTS -Wno-shift-negative-value -Wno-unused-const-variable -Wno-nonnull-compare -Wno-tautological-compare"
|
||||
fi
|
||||
|
||||
if test "$gccnum" -ge "700"; then
|
||||
# gcc 7 spews a bunch of warnings by default
|
||||
GCCOPTS="$GCCOPTS -Wno-expansion-to-defined -Wimplicit-fallthrough=0"
|
||||
fi
|
||||
|
||||
case $prefix in
|
||||
""|"$CROSS_COMPILE")
|
||||
# simulator
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue