summaryrefslogtreecommitdiff
path: root/cflags.SH
diff options
context:
space:
mode:
Diffstat (limited to 'cflags.SH')
-rwxr-xr-xcflags.SH4
1 files changed, 4 insertions, 0 deletions
diff --git a/cflags.SH b/cflags.SH
index f57cf2fc3e..ac03b85f1f 100755
--- a/cflags.SH
+++ b/cflags.SH
@@ -337,6 +337,10 @@ for file do
cppflags=`echo $cppflags|sed 's/-Wdeclaration-after-statement/ /'`
case "$cc" in
+ *clang)
+ # clang complains a lot about -Wunused-value which are not fixable
+ warn="$warn -Wno-unused-value"
+ ;;
*g++*)
# Without -Wno-unused-variable g++ 4.x compiles are rather unwatchable
# because of all the warnings about Perl___notused, and g++ doesn't do