Author Topic: Showing compiler warnings  (Read 2664 times)

johnmrowe

  • Guest
Showing compiler warnings
« on: September 07, 2011, 12:01:06 pm »
I teach an introductory C course for physics students. In the past we have used XCode which has the useful feature that it highlights both errors and warnings in the left margin of the offending line ("the gutter"). This is really useful, particularly as gcc shows mistakes in format statements, which are a frequent problem for beginners.

I believe that Code::Blocks is currently limited to just showing the first error, rather than them all as XCode does, but is there a way for it to show the first warning if there are no errors?

Thanks

John



Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Showing compiler warnings
« Reply #1 on: September 07, 2011, 07:19:05 pm »
Settings -> Compiler and Debugger
Tab "Compiler Options"
Under sub-tab "Compiler Flags": Set the warning flags here; if not listed add under "Other Options"



Settings -> Compiler and Debugger
Tab: Other Settings (far right tab)
See Section Compiler independent Options for Error number settings

Tim S.

C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org