diff options
author | Franklin Wei <git@fwei.tk> | 2017-08-23 14:20:58 -0400 |
---|---|---|
committer | Franklin Wei <git@fwei.tk> | 2017-08-23 14:32:39 -0400 |
commit | b13f6e5b67abda2e466731f39d221eec2c9eb576 (patch) | |
tree | b4bb642857d17dda091ea40a13de8c37a0b7fe28 /tools/configure | |
parent | 3c514f8e20ea8762025a12f9edbea27967e31d76 (diff) | |
download | rockbox-b13f6e5b67abda2e466731f39d221eec2c9eb576.tar.gz rockbox-b13f6e5b67abda2e466731f39d221eec2c9eb576.zip |
Silence GCC 7.x warnings when building simulator
Adds -Wno-expansion-to-defined and -Wimplicit-fallthrough=0 to sim
opts.
Change-Id: I62148e392446ae6a3fbe4c4d55770b72962e393d
Diffstat (limited to 'tools/configure')
-rwxr-xr-x | tools/configure | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/configure b/tools/configure index 0db6501288..7b3df06dcd 100755 --- a/tools/configure +++ b/tools/configure | |||
@@ -265,6 +265,11 @@ simcc () { | |||
265 | # Some linux setups like to warn about unused results. They are correct, | 265 | # Some linux setups like to warn about unused results. They are correct, |
266 | # but cleaning this up is a lot of work. | 266 | # but cleaning this up is a lot of work. |
267 | GCCOPTS="$GCCOPTS -Wno-unused-result" | 267 | GCCOPTS="$GCCOPTS -Wno-unused-result" |
268 | # GCC 7.x spits out a lot of warnings about macros containing | ||
269 | # defined() and fall-throughs in switch statements. Fixing all these | ||
270 | # is a waste of time. | ||
271 | GCCOPTS="$GCCOPTS -Wno-expansion-to-defined -Wimplicit-fallthrough=0" | ||
272 | |||
268 | GCCOPTIMIZE='' | 273 | GCCOPTIMIZE='' |
269 | LDOPTS="$LDOPTS -lm" # button-sdl.c uses sqrt() | 274 | LDOPTS="$LDOPTS -lm" # button-sdl.c uses sqrt() |
270 | sigaltstack="" | 275 | sigaltstack="" |