User forums > Using Code::Blocks

Compiler output parsing: gcc notes

(1/2) > >>

ifred:
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: gcc ---filename.h:29:6: note: expected ‘CHAR *’ but argument is of type ‘CARD8 *’
--- End quote ---
Unfortunately they threated as errors by C::B output parser.
Does anyone know how to fix this?

zabzonk:
Well, it is an error (or at least a warning), what do you want CB to do with it?

Jenna:
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.

ifred:

--- 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.


--- End quote ---
Thank you! I'll test it when your modifications will appear in your debian repository.

Jenna:

--- 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.


--- End quote ---
Thank you! I'll test it when your modifications will appear in your debian repository.

--- End quote ---
It's there now.
Have fun !

Navigation

[0] Message Index

[#] Next page

Go to full version