Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Warning: Multi-line comments [-Wcomment] display red.(Warning: Multi-line comments [-Wcomment] display red.)
Warning: Multi-line comments [-Wcomment] display red. [message #895691] Sun, 15 July 2012 03:32 Go to next message
JIA Pei is currently offline JIA PeiFriend
Messages: 49
Registered: September 2009
Member

Hi, all:

Environment:
Eclipse IDE for C/C++ Developers

Version: Indigo Service Release 2
Build id: 20120216-1857



I'm trying to build a C/C++ project using Eclipse CDT. Everything seems to be fine, except one thing makes me annoyed. Some warnings display red, which I thought should display yellow.

The warnings displaying in red include:

Quote:

1) Warning: Multi-line comments [-Wcomment]
2) Warning: Comparison between signed and unsigned integer expressions [-Wsign-compare]
3) Warning: ' ' defined but not used [-Wunused-variable]



Please help, how to make the warnings display yellow, instead of red?
Quote:
Windows->Preference->C/C++->Code Analysis

I can see where I can specify the Severity of specific problem. However, there seems to be nowhere corresponds to the above 3 warnings.

[Updated on: Mon, 16 July 2012 00:30]

Report message to a moderator

Re: Warning: Multi-line comments [-Wcomment] display red. [message #895812 is a reply to message #895691] Mon, 16 July 2012 07:36 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
This are warnings from the compiler so no need to fiddle with the Code Analysis settings.
- Are the warnings shown in English?
- Are all warnings shown in red or only some of them?
- Which error parsers are active in Project Properties->C/C++ Build->Settings: Error parsers?



Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: Warning: Multi-line comments [-Wcomment] display red. [message #896591 is a reply to message #895812] Thu, 19 July 2012 03:56 Go to previous messageGo to next message
JIA Pei is currently offline JIA PeiFriend
Messages: 49
Registered: September 2009
Member

Axel Mueller wrote on Mon, 16 July 2012 03:36
This are warnings from the compiler so no need to fiddle with the Code Analysis settings.
- Are the warnings shown in English?

Yes, all warnings are shown in English.

Quote:

- Are all warnings shown in red or only some of them?

Now, I'm working under Ubuntu 12.04 now. All warnings are shown in red !!

Quote:

- Which error parsers are active in Project Properties->C/C++ Build->Settings: Error parsers?

I've got 8 here in total, but only 4 are ticked.

Quote:
CDT GNU Make Error Parser 7.0 (ticked)
CDT pushd/popd CWD Locator (ticked)
CDT GNU C/C++ Error Parser (ticked)
CDT GNU Assembler Error Parser (ticked)
Autoconf Error Parser (unticked)
CDT GNU Linker Error Parser (unticked)
CDT Visual C Error Parser (unticked)
CDT GNU Make Error Parser 6.0 (Deprecated) (unticked)



So, any further suggestions?


Best Regards
Pei



Re: Warning: Multi-line comments [-Wcomment] display red. [message #896698 is a reply to message #896591] Thu, 19 July 2012 12:09 Go to previous message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
Hmm, everything looks good to me. When you look at the error parser definitions is there every pattern that contains "warning" classified as warning?

Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Previous Topic:Obtaining call hierarchy
Next Topic:CDT Indexer issues
Goto Forum:
  


Current Time: Fri Apr 19 14:10:52 GMT 2024

Powered by FUDForum. Page generated in 0.01907 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top