News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Error in build log window

Started by connyosis, November 09, 2005, 11:36:07 PM

Previous topic - Next topic

connyosis

Decided to compile my project with warnings enabled, and then noticed that in the build log window, the error and warning report is switched around.
When I have warnings, it reports them as errors:

...
Linking executable labyrinth...
Process terminated with status 0 (0 minutes, 23 seconds)
44 errors, 0 warnings

Anyone else noticed this?

(And yes, those warnings will be taken care of)

Urxae

I think warning and error recognition is compiler-specific, so it might help to mention which one you are using.
For what it's worth, I've never noticed this problem using MinGW.

connyosis

I'm using gcc 3.3.6 under Linux. Not that this bug (If it is a code::blocks bug) is a big deal, just thought I'd point it out.

mandrav

It would help if you posted a couple of these warnings that are reported as errors.
Be patient!
This bug will be fixed soon...

MortenMacFly

Quote from: connyosis on November 09, 2005, 11:36:07 PM
44 errors, 0 warnings
Did you enable the "Treat as errors warnings demanded by strict ISO C and ISO C++" (-pedantic) option in the compiler settings?

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

connyosis

Nope, treat warnings as errors is not enabled.
Some examples of these warnings are:


In file included from /home/conny/Desktop/projekt/code/src/cmapeditor/ceditorpalette.h:5,
                 from /home/conny/Desktop/projekt/code/src/cmapeditor/cmapeditor.h:11,
                 from src/capplication.h:10,
                 from main.cpp:3:
/home/conny/Desktop/projekt/code/src/cmapeditor/ceditorobject.h:17: warning: `
   class CEditorObject' has virtual functions but non-virtual destructor
In file included from /home/conny/Desktop/projekt/code/src/cmapeditor/ceditorpalette.h:6,
                 from /home/conny/Desktop/projekt/code/src/cmapeditor/cmapeditor.h:11,
                 from src/capplication.h:10,
                 from main.cpp:3:
/home/conny/Desktop/projekt/code/src/cmapeditor/ceditorcurrentobject.h:11: warning: `
   class CEditorCurrentObject' has virtual functions but non-virtual destructor
In file included from /home/conny/Desktop/projekt/code/src/cmapeditor/cmapeditor.h:11,
                 from src/capplication.h:10,
                 from main.cpp:3:
/home/conny/Desktop/projekt/code/src/cmapeditor/ceditorpalette.h:13: warning: `
   class CEditorPalette' has virtual functions but non-virtual destructor
In file included from src/capplication.h:10,
                 from main.cpp:3:
/home/conny/Desktop/projekt/code/src/cmapeditor/cmapeditor.h:18: warning: `
   class CMapEditor' has virtual functions but non-virtual destructor
In file included from src/capplication.h:11,
                 from main.cpp:3:
/home/conny/Desktop/projekt/code/src/cgame/cgame.h:13: warning: `class CGame'
   has virtual functions but non-virtual destructor
Compiling src/capplication.cpp...
In file included from src/ctestcontext.h:9,
                 from src/capplication.h:6,
                 from src/capplication.cpp:1:
src/cbutton.h:6: warning: `class CButton' has virtual functions but non-virtual
   destructor
In file included from /home/conny/Desktop/projekt/code/src/cmapeditor/ceditorpalette.h:5,
                 from /home/conny/Desktop/projekt/code/src/cmapeditor/cmapeditor.h:11,
                 from src/capplication.h:10,
                 from src/capplication.cpp:1:
/home/conny/Desktop/projekt/code/src/cmapeditor/ceditorobject.h:17: warning: `
   class CEditorObject' has virtual functions but non-virtual destructor
In file included from /home/conny/Desktop/projekt/code/src/cmapeditor/ceditorpalette.h:6,
                 from /home/conny/Desktop/projekt/code/src/cmapeditor/cmapeditor.h:11,
                 from src/capplication.h:10,
                 from src/capplication.cpp:1:
/home/conny/Desktop/projekt/code/src/cmapeditor/ceditorcurrentobject.h:11: warning: `
   class CEditorCurrentObject' has virtual functions but non-virtual destructor
src/cclickable.cc: In member function `virtual bool CClickable::checkOverlap()
   ':
src/cclickable.cc:24: warning: control reaches end of non-void function


Under build messages these are all reported as warnings, not errors.