News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

C::B flags 'note:' as a compiler error (with patch)

Started by gmb300, September 13, 2007, 11:15:31 PM

Previous topic - Next topic

gmb300

Example:
warning: 'nErr' may be used uninitialized in this function
note: 'nErr' was declared here
    ^ This line is not an error, it is the context of the warning message

The 'note:' gets flagged as an error.

Edited...

MortenMacFly

Quote from: gmb300 on September 13, 2007, 11:15:31 PM
Since I set the maximum error limit to 5 this prevents me from seeing any real errors.
So why do you set such a low limit then?! :shock:
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

gmb300

Patch

I created a patch which treats 'note:' lines as information. But only for the MingW/GCC target. It might be a good idea to add these regexes to all the GCC based compiler targets.

[attachment deleted by admin]

Biplab

Quote from: gmb300 on September 14, 2007, 08:38:41 PM
Patch

I created a patch which treats 'note:' lines as information. But only for the MingW/GCC target. It might be a good idea to add these regexes to all the GCC based compiler targets.

Applied in revision 4544. Thanks for the patch. :)
Be a part of the solution, not a part of the problem.

darthdespotism

MinGW only?

Can be annoying with nativ gcc on Gnu/Linux, too ;)

mandrav

Be patient!
This bug will be fixed soon...

darthdespotism

Quote from: mandrav on October 19, 2007, 02:03:18 PM
It's the same compiler...

Yes but the author only mentions MinGW and excludes explicitely other GCCs from his Patch.

Doing an update right now ;)