Greetings, Below is a simple patch for fixing the error level of an additional note that follows a warning about using C++ style comments. The ChangeLog entry is below, followed by the patch.
Tried to figure out how to run the tests, but not sure if it's necessary for something so simple... would appreciate some guidance here. Let me know if everything looks good. Thanks! 2018-07-17 Jason Franklin <j_...@fastmail.us> * libcpp/lex.c: Fix error level for note following warning about the use of C++ style comments. >From abd68997bdaf77d48aeb653fab7311b16791d9da Mon Sep 17 00:00:00 2001 From: Jason Franklin <j_...@fastmail.us> Date: Tue, 17 Jul 2018 10:47:28 -0400 Subject: [PATCH] Fix error level for note on C++ comment warning --- libcpp/lex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcpp/lex.c b/libcpp/lex.c index 37c365a3560..4b93691bd1e 100644 --- a/libcpp/lex.c +++ b/libcpp/lex.c @@ -2874,7 +2874,7 @@ _cpp_lex_direct (cpp_reader *pfile) { cpp_error (pfile, CPP_DL_PEDWARN, "C++ style comments are not allowed in ISO C90"); - cpp_error (pfile, CPP_DL_PEDWARN, + cpp_error (pfile, CPP_DL_NOTE, "(this will be reported only once per input file)"); buffer->warned_cplusplus_comments = 1; } @@ -2885,7 +2885,7 @@ _cpp_lex_direct (cpp_reader *pfile) { cpp_error (pfile, CPP_DL_WARNING, "C++ style comments are incompatible with C90"); - cpp_error (pfile, CPP_DL_WARNING, + cpp_error (pfile, CPP_DL_NOTE, "(this will be reported only once per input file)"); buffer->warned_cplusplus_comments = 1; } -- 2.17.1