* exgettext: Only handle Warn when followed by '('.
authorJoseph Myers <joseph@codesourcery.com>
Fri, 22 Oct 2010 14:58:26 +0000 (15:58 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Fri, 22 Oct 2010 14:58:26 +0000 (15:58 +0100)
From-SVN: r165835

gcc/po/ChangeLog
gcc/po/exgettext

index f413e9a..8eb2468 100644 (file)
@@ -1,3 +1,7 @@
+2010-10-22  Joseph Myers  <joseph@codesourcery.com>
+
+       * exgettext: Only handle Warn when followed by '('.
+
 2010-10-13  Joseph Myers  <joseph@codesourcery.com>
 
        * vi.po: Update.
index 6cc9156..4926bf3 100644 (file)
@@ -234,7 +234,7 @@ echo "scanning option files..." >&2
                printf("#line %d \"%s\"\n", lineno, file)
                printf("_(\"%s\")\n", line)
            }
-           if ((field == 1) && /Warn/) {
+           if ((field == 1) && /Warn\(/) {
                line = $0
                sub(".*Warn\\(", "", line)
                if (line ~ "^{") {