diff options
Diffstat (limited to 'gcc/cpplex.c')
-rw-r--r-- | gcc/cpplex.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/cpplex.c b/gcc/cpplex.c index 5f3e3f6..a79bedd 100644 --- a/gcc/cpplex.c +++ b/gcc/cpplex.c @@ -402,11 +402,9 @@ forms_identifier_p (pfile, first) return false; buffer->cur++; - if (CPP_PEDANTIC (pfile) - && !pfile->state.skipping - && !pfile->warned_dollar) + if (pfile->warn_dollars && !pfile->state.skipping) { - pfile->warned_dollar = true; + pfile->warn_dollars = false; cpp_error (pfile, DL_PEDWARN, "'$' in identifier or number"); } |