Author Topic: Enabling building warning and error messages ?  (Read 3877 times)

Offline Plazzmex

  • Single posting newcomer
  • *
  • Posts: 7
Enabling building warning and error messages ?
« on: December 20, 2008, 01:34:06 am »
How to enable the warning and error messages like in Wx-DevCpp ?
for example in my code I have this line of code:
"static HWND hAllGroupBox;" and iI don't use it nowhere..
so Devcpp write me a message like this: "Warning: hAllGroupBox might be used uninitialized in this function" or something like this (don't remember the exact text)...
How can I enable thos messages in Code::Blocks ?
thanks..

Using Code::Blocks 8.02 with MinGW GCC Compiler on Windows XP.

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: Enabling building warning and error messages ?
« Reply #1 on: December 20, 2008, 08:55:19 am »
In your project's build options, tab Compiler Flags be sure to enable Enable all compiler warnings (overrides every other setting) [-Wall]. If that doesn't do the trick, it might be a difference in the compiler version.

Offline Plazzmex

  • Single posting newcomer
  • *
  • Posts: 7
Re: Enabling building warning and error messages ?
« Reply #2 on: December 20, 2008, 04:17:30 pm »
It works.
I see the warnings when the compiler in the middle of the compiling.
but when the compile is finished, the warnings dissappear (I mean in the build log/build messages tabs there are no things written.), deleted. why ? I want that the build messages tab will remain the warnings after compile is finished