diff options
author | Jakub Jelinek <jakub@redhat.com> | 2001-04-11 11:43:10 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2001-04-11 11:43:10 +0200 |
commit | 01ef656387da241b1f72fde4f174c9cb3fae0e27 (patch) | |
tree | d00244748dee561c6944de2cf0df8e685c1694dc /gcc/cpplex.c | |
parent | 876684fea370174f21bf037b83a353e70d2d2352 (diff) | |
download | gcc-01ef656387da241b1f72fde4f174c9cb3fae0e27.zip gcc-01ef656387da241b1f72fde4f174c9cb3fae0e27.tar.gz gcc-01ef656387da241b1f72fde4f174c9cb3fae0e27.tar.bz2 |
* cpplex.c (_cpp_lex_token): Only warn if -Wcomment.
From-SVN: r41247
Diffstat (limited to 'gcc/cpplex.c')
-rw-r--r-- | gcc/cpplex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cpplex.c b/gcc/cpplex.c index efc0aa5..6bf0cdf 100644 --- a/gcc/cpplex.c +++ b/gcc/cpplex.c @@ -1017,7 +1017,7 @@ _cpp_lex_token (pfile, result) } /* Skip_line_comment updates buffer->read_ahead. */ - if (skip_line_comment (pfile)) + if (skip_line_comment (pfile) && CPP_OPTION (pfile, warn_comments)) cpp_warning_with_line (pfile, pfile->lexer_pos.line, pfile->lexer_pos.col, "multi-line comment"); |