make: add more recognised formats to the gcc-warnings script
authorFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 23 Feb 2016 22:42:04 +0000 (23:42 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 25 Feb 2016 12:39:32 +0000 (13:39 +0100)
And fix a typo

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
gcc-warnings

index 9bf8079..3ed7617 100755 (executable)
@@ -33,6 +33,14 @@ parsetest() {
             opt="${error#*\"}"
             opt="${opt%\"*}"
             ;;
+        *:\ unrecognized\ *option\ \‘*)
+            opt="${error#*\‘}"
+            opt="${opt%\‘*}"
+            ;;
+        *:\ unrecognized\ *option\ \'*)
+            opt="${error#*\'}"
+            opt="${opt%\'*}"
+            ;;
         *:\ unrecognized\ *option\ \`*)
             opt="${error#*\`}"
             opt="${opt%\'*}"
@@ -41,7 +49,7 @@ parsetest() {
             ;;
        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