diff options
author | Marc Espie <espie@cvs.openbsd.org> | 1999-12-15 16:46:30 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 1999-12-15 16:46:30 +0000 |
commit | a2c40f8012540fb7557ae20582e26e1824d53d38 (patch) | |
tree | 9c3e9406e9b8bec9d1805525f0a93e17fbb72245 /gnu/egcs/gcc | |
parent | cfd41de5add80002d3c9bd01d5b05838e06f9f93 (diff) |
From gcc development sources:
if -Wtraditional, warn about ANSI cpp string concatenation.
Diffstat (limited to 'gnu/egcs/gcc')
-rw-r--r-- | gnu/egcs/gcc/c-parse.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/egcs/gcc/c-parse.in b/gnu/egcs/gcc/c-parse.in index 6757c4d464a..faf5ff71c3b 100644 --- a/gnu/egcs/gcc/c-parse.in +++ b/gnu/egcs/gcc/c-parse.in @@ -894,7 +894,12 @@ end ifobjc string: STRING | string STRING - { $$ = chainon ($1, $2); } + { $$ = chainon ($1, $2); +ifc + if (warn_traditional) + warning ("Use of ANSI string concatenation"); +end ifc + } ; ifobjc |