Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: c.panel on April 16, 2013, 12:14:48 pm

Title: -Wall forced in compile command
Post by: c.panel on April 16, 2013, 12:14:48 pm
I found no way to disable the -Wall compile option which seems to be inserted in compile command line. Is it a bug ?
this bug exists too when I change compiler and throw an error.
I'm using Codeblocks 12.11 on WindowsXP

thanks for any answer... 
Title: Re: -Wall forced in compile command
Post by: Jenna on April 16, 2013, 12:26:51 pm
If it is not set in the projects (or targets) build-options, it must be set in global compiler settings.
Please check all these places.

C::B does not add it itself (except for the settings of wizard-created projects).
Title: Re: -Wall forced in compile command
Post by: stahta01 on April 16, 2013, 05:21:14 pm
I found no way to disable the -Wall compile option which seems to be inserted in compile command line. Is it a bug ?
this bug exists too when I change compiler and throw an error.

Warning when changing compilers in projects the options NOT valid for new Compiler tend to move to the other settings for Linker and Compiler options.

Where to look for Compiler Other Options

Project -> Build Options
NOTE: Remember Select each target one by one to check each one for the options.
Tab "Compiler Settings"
Sub-Tab "Other Options"

Tim S.