Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: ifred on September 28, 2011, 12:59:43 PM

Title: Compiler output parsing: gcc notes
Post by: ifred on September 28, 2011, 12:59:43 PM
I'm using gcc 4.5.2 and svn build of C::B (rev. 7451).
Sometimes gcc outputs notes during compilation. Here is an example:
Quote from: gccfilename.h:29:6: note: expected 'CHAR *' but argument is of type 'CARD8 *'
Unfortunately they threated as errors by C::B output parser.
Does anyone know how to fix this?
Title: Re: Compiler output parsing: gcc notes
Post by: zabzonk on September 28, 2011, 01:08:04 PM
Well, it is an error (or at least a warning), what do you want CB to do with it?
Title: Re: Compiler output parsing: gcc notes
Post by: Jenna on September 28, 2011, 01:59:03 PM
I just (hopefully) fixed this bug in trunk.
It occurred, because newer gcc's give the column of the error/note/warning, while older versions < 4.5 only did this for preprocessor messages (as far as I know).
So the compiler note was incorrectly treated as preprocessor-error.
Title: Re: Compiler output parsing: gcc notes
Post by: ifred on September 28, 2011, 02:23:56 PM
Quote from: jens on September 28, 2011, 01:59:03 PM
I just (hopefully) fixed this bug in trunk.
It occurred, because newer gcc's give the column of the error/note/warning, while older versions < 4.5 only did this for preprocessor messages (as far as I know).
So the compiler note was incorrectly treated as preprocessor-error.

Thank you! I'll test it when your modifications will appear in your debian repository.
Title: Re: Compiler output parsing: gcc notes
Post by: Jenna on September 28, 2011, 04:42:02 PM
Quote from: iFred on September 28, 2011, 02:23:56 PM
Quote from: jens on September 28, 2011, 01:59:03 PM
I just (hopefully) fixed this bug in trunk.
It occurred, because newer gcc's give the column of the error/note/warning, while older versions < 4.5 only did this for preprocessor messages (as far as I know).
So the compiler note was incorrectly treated as preprocessor-error.

Thank you! I'll test it when your modifications will appear in your debian repository.
It's there now.
Have fun !
Title: Re: Compiler output parsing: gcc notes
Post by: ifred on September 28, 2011, 04:53:37 PM
Quote from: jens on September 28, 2011, 04:42:02 PM
It's there now.
Have fun !
Just tried, seems to work fine. Thank you!