Probe for -Wno-string-plus-int.
authorRob Landley <rob@landley.net>
Sat, 9 May 2015 22:07:22 +0000 (17:07 -0500)
committerRob Landley <rob@landley.net>
Sat, 9 May 2015 22:07:22 +0000 (17:07 -0500)
commita913d92bad6550e005a3ffac71a82586042171b5
tree00299266702e9c2abb206e17c5bd896f4358955b
parent72cd2e07f1cea190925021472465325e72589f47
Probe for -Wno-string-plus-int.

LLVM has its own nuts warnings about things that aren't wrong, but disabling
them with the relevant -Wno-* warning disabling command line option drives
gcc nuts because it's a command line option it doesn't recognize. (gcc 4.2.1
dies with an error. gcc 4.6 warns about it _only_ if it's warning about
something else. (PICK ONE, either you warn about this or you don't, distract
people from actual problems with noise about something clearly unrelated to
what just changed is extra-stupid.)

So just probe for it, and add the flag only if it doesn't complain about it
while we're producing an unrelated warning.
configure
scripts/genconfig.sh
scripts/make.sh