info: completely switch of caching for timeouts <= 0
[olsrd.git] / gcc-warnings
index dc2d729..edf90e3 100755 (executable)
@@ -27,25 +27,49 @@ 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
+       # if we come here, we have in $opt the option to remove. and
        # we remove all instances. And we save against leading "-"
        NEW_OPTS=""
        for o in $OPTS; do
            case "$o" in
-               $opt) echo "Removed $o" >&2;;
+               $opt) echo "Removed $o" >&2;;
                *)    NEW_OPTS="$NEW_OPTS $o";;
            esac
        done