diff --git a/gcc/po/ChangeLog b/gcc/po/ChangeLog index f413e9aea48..8eb2468adca 100644 --- a/gcc/po/ChangeLog +++ b/gcc/po/ChangeLog @@ -1,3 +1,7 @@ +2010-10-22 Joseph Myers + + * exgettext: Only handle Warn when followed by '('. + 2010-10-13 Joseph Myers * vi.po: Update. diff --git a/gcc/po/exgettext b/gcc/po/exgettext index 6cc9156e58f..4926bf35796 100644 --- a/gcc/po/exgettext +++ b/gcc/po/exgettext @@ -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 ~ "^{") {