aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpplex.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2001-04-11 11:43:10 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2001-04-11 11:43:10 +0200
commit01ef656387da241b1f72fde4f174c9cb3fae0e27 (patch)
treed00244748dee561c6944de2cf0df8e685c1694dc /gcc/cpplex.c
parent876684fea370174f21bf037b83a353e70d2d2352 (diff)
downloadgcc-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.c2
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");