diff options
author | Alexandre Oliva <oliva@lsd.ic.unicamp.br> | 2000-02-16 08:40:32 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2000-02-16 08:40:32 +0000 |
commit | 4082292ada81523489887b54ec9795cdb1f19481 (patch) | |
tree | ee4d059e84c7ed87252a50231f601727f91398a2 /gcc/c-lex.c | |
parent | 3ea8083fc9062ef5c6f2e97b563ce2e8b3f7a8c6 (diff) | |
download | gcc-4082292ada81523489887b54ec9795cdb1f19481.zip gcc-4082292ada81523489887b54ec9795cdb1f19481.tar.gz gcc-4082292ada81523489887b54ec9795cdb1f19481.tar.bz2 |
* c-lex.c (readescape): Warn about 'x', but do not reject it.
From-SVN: r32005
Diffstat (limited to 'gcc/c-lex.c')
-rw-r--r-- | gcc/c-lex.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c index 1d271b0..7456659 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -942,7 +942,10 @@ readescape (ignore_ptr) nonnull = 1; } if (! nonnull) - error ("\\x used with no following hex digits"); + { + warning ("\\x used with no following hex digits"); + return 'x'; + } else if (count == 0) /* Digits are all 0's. Ok. */ ; |