info: completely switch of caching for timeouts <= 0
[olsrd.git] / gcc-warnings
index 9293d06..edf90e3 100755 (executable)
@@ -3,7 +3,6 @@
 # We expect warning options for gcc as arguments and return the ones which are
 # accepted by the given gcc.
 #
-# $Id: gcc-warnings,v 1.9 2007/12/11 17:16:03 bernd67 Exp $
 
 set -ue
 #set -vx
@@ -28,21 +27,45 @@ EOF
 }
 
 parsetest() {
-    while read error; do 
+    while read error; do
         case "$error" in
         *:\ unrecognized\ *option\ \"*)
             opt="${error#*\"}"
             opt="${opt%\"*}"
             ;;
+        *:\ unrecognized\ *option\ \‘*)
+            opt="${error#*\‘}"
+            opt="${opt%\‘*}"
+            ;;
+        *:\ unrecognized\ *option\ \'*)
+            opt="${error#*\'}"
+            opt="${opt%\'*}"
+            ;;
         *:\ unrecognized\ *option\ \`*)
             opt="${error#*\`}"
             opt="${opt%\'*}"
             ;;
-        *) continue
+
+        # clang
+        *:\ unknown\ argument:\ \'*)
+            opt="${error#*\'}"
+            opt="${opt%\'*}"
+            ;;
+        *:\ unknown\ warning\ option\ \'*)
+            opt="${error#*\'}"
+            opt="${opt%\'*}"
+            ;;
+        *:\ optimization\ flag\ *\ is\ not\ supported)
+            opt="${error#*\'}"
+            opt="${opt%\'*}"
+            ;;
+
+        *)
+            continue
             ;;
        esac
        # if we come here, we have in $opt the option to remove. and
-       # we remove all instances. And we save agoinst leading "-"
+       # we remove all instances. And we save against leading "-"
        NEW_OPTS=""
        for o in $OPTS; do
            case "$o" in