Skip to main content



      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
Eclipse UserFriend
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: Sun, 15 July 2012 20:30] by 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
Eclipse UserFriend
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?

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
Eclipse UserFriend
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 08:09 Go to previous message
Eclipse UserFriend
Hmm, everything looks good to me. When you look at the error parser definitions is there every pattern that contains "warning" classified as warning?
Previous Topic:Obtaining call hierarchy
Next Topic:CDT Indexer issues
Goto Forum:
  


Current Time: Wed Jul 23 14:48:14 EDT 2025

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

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

Back to the top