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] Sat, 14 July 2012 23:32 Go to next message
JIA Pei is currently offline JIA Pei
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.



Welcome to Vision Open
http://www.visionopen.com

[Updated on: Sun, 15 July 2012 20: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 03:36 Go to previous messageGo to next message
Axel Mueller is currently offline Axel Mueller
Messages: 1949
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] Wed, 18 July 2012 23:56 Go to previous messageGo to next message
JIA Pei is currently offline JIA Pei
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





Welcome to Vision Open
http://www.visionopen.com
Re: Warning: Multi-line comments [-Wcomment] display red. [message #896698 is a reply to message #896591] Thu, 19 July 2012 08:09 Go to previous message
Axel Mueller is currently offline Axel Mueller
Messages: 1949
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: Wed Aug 27 17:25:44 EDT 2014

Powered by FUDForum. Page generated in 0.01662 seconds