diff options
| author | Frank Gevaerts <frank@gevaerts.be> | 2016-08-12 14:41:06 +0200 |
|---|---|---|
| committer | Frank Gevaerts <frank@gevaerts.be> | 2016-08-12 14:42:31 +0200 |
| commit | 37cc4336286bd5ba8fd7611e91dd197469a2e9d2 (patch) | |
| tree | f903c6ab6560702e4007413400d3ef8324309197 /tools | |
| parent | 578525b4638f575e30edb963c0de5dde44e250d5 (diff) | |
| download | rockbox-37cc4336286bd5ba8fd7611e91dd197469a2e9d2.zip rockbox-37cc4336286bd5ba8fd7611e91dd197469a2e9d2.tar.gz rockbox-37cc4336286bd5ba8fd7611e91dd197469a2e9d2.tar.bz2 rockbox-37cc4336286bd5ba8fd7611e91dd197469a2e9d2.tar.xz | |
Silence newer toolchains a bit
Newer toolchains (both gcc and libc related) add a lot of warnings.
While these can be useful and correct, cleaning them up woult be a
lot of work and isn't likely to actually happen any time soon.
Change-Id: I8c4e8cd3dc92f9afa4bf003c63ca65e895e3ef00
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/configure | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/configure b/tools/configure index 4c742f5..4910dcb 100755 --- a/tools/configure +++ b/tools/configure @@ -237,6 +237,9 @@ simcc () { GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib// -e s/-Wundef//` GCCOPTS="$GCCOPTS -fno-builtin -g" + # Some linux setups like to warn about unused results. They are correct, + # but cleaning this up is a lot of work. + GCCOPTS="$GCCOPTS -Wno-unused-result" GCCOPTIMIZE='' LDOPTS="$LDOPTS -lm" # button-sdl.c uses sqrt() sigaltstack="" @@ -4189,6 +4192,12 @@ else GCCOPTS="$GCCOPTS -Wno-override-init" fi + if test "$gccnum" -ge "601"; then + # gcc 6 adds a lot of warnings that while useful are too time-consuming + # to clean up right away + GCCOPTS="$GCCOPTS -Wno-shift-negative-value -Wno-unused-const-variable -Wno-nonnull-compare -Wno-tautological-compare" + fi + case $prefix in ""|"$CROSS_COMPILE") # simulator |