Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: connyosis on November 09, 2005, 11:36:07 pm

Title: Error in build log window
Post by: connyosis on November 09, 2005, 11:36:07 pm
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)
Title: Re: Error in build log window
Post by: Urxae on November 10, 2005, 12:00:10 am
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.
Title: Re: Error in build log window
Post by: connyosis on November 10, 2005, 07:06:06 am
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.
Title: Re: Error in build log window
Post by: mandrav on November 10, 2005, 08:45:35 am
It would help if you posted a couple of these warnings that are reported as errors.
Title: Re: Error in build log window
Post by: MortenMacFly on November 10, 2005, 12:44:03 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.
Title: Re: Error in build log window
Post by: connyosis on November 10, 2005, 02:22:23 pm
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.