aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-05-09 17:07:22 -0500
committerRob Landley <rob@landley.net>2015-05-09 17:07:22 -0500
commita913d92bad6550e005a3ffac71a82586042171b5 (patch)
tree00299266702e9c2abb206e17c5bd896f4358955b /configure
parent72cd2e07f1cea190925021472465325e72589f47 (diff)
downloadtoybox-a913d92bad6550e005a3ffac71a82586042171b5.tar.gz
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.
Diffstat (limited to 'configure')
-rw-r--r--configure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 5831e1ab..21d56f38 100644
--- a/configure
+++ b/configure
@@ -7,7 +7,7 @@
# CFLAGS and OPTIMIZE are different so you can add extra CFLAGS without
# disabling default optimizations
-[ -z "$CFLAGS" ] && CFLAGS="-Wall -Wundef -Wno-char-subscripts -Wno-string-plus-int"
+[ -z "$CFLAGS" ] && CFLAGS="-Wall -Wundef -Wno-char-subscripts"
# Required for our expected ABI. we're 8-bit clean thus "char" must be unsigned.
CFLAGS="$CFLAGS -funsigned-char"
[ -z "$OPTIMIZE" ] && OPTIMIZE="-Os -ffunction-sections -fdata-sections -fno-asynchronous-unwind-tables"