aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-05-26 06:21:37 +0000
committerRichard Stallman <rms@gnu.org>1993-05-26 06:21:37 +0000
commit3285fe92de8bb0f2fe7892f753e186202967c0a2 (patch)
tree320c019dc0935face98b444d8c63c5dc50ecc192 /gcc
parent208dffa5cd4aa058d79e55b5bd83e49a76ae97f6 (diff)
downloadgcc-3285fe92de8bb0f2fe7892f753e186202967c0a2.zip
gcc-3285fe92de8bb0f2fe7892f753e186202967c0a2.tar.gz
gcc-3285fe92de8bb0f2fe7892f753e186202967c0a2.tar.bz2
(readescape): Don't complain for \% unless pedantic.
From-SVN: r4575
Diffstat (limited to 'gcc')
-rw-r--r--gcc/c-lex.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c
index 6c0515b..d83b5dc 100644
--- a/gcc/c-lex.c
+++ b/gcc/c-lex.c
@@ -1012,6 +1012,8 @@ readescape (ignore_ptr)
case '(':
case '{':
case '[':
+ /* `\%' is used to prevent SCCS from getting confused. */
+ case '%':
if (pedantic)
pedwarn ("non-ANSI escape sequence `\\%c'", c);
return c;