From dad112cafdac7d9c611cae84a3de781d46b735b8 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Fri, 6 Nov 1992 08:08:51 +0000 Subject: (readescape): Support \e like \E. Warn only if -pedantic. From-SVN: r2697 --- gcc/c-lex.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/c-lex.c b/gcc/c-lex.c index 924a22c..4c773e1 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -905,8 +905,10 @@ readescape (ignore_ptr) #endif return TARGET_VT; + case 'e': case 'E': - pedwarn ("non-ANSI-standard escape sequence, `\\E'"); + if (pedantic) + pedwarn ("non-ANSI-standard escape sequence, `\\%c'", c); return 033; case '?': -- cgit v1.1