Code::Blocks Forums

User forums => Help => Topic started by: relpats_eht on August 11, 2010, 08:39:25 am

Title: Code::Blocks treating all warning options as checked
Post by: relpats_eht on August 11, 2010, 08:39:25 am
Greetings,

I am running Code::Blocks 10.5 on Gentoo. For some reason, no matter the state of any checkbox in the Compiler Options section of Build Options, something (I believe Code::Blocks) is instructing g++ to treat all warnings as active. Passing -Wno-* for specific warnings I really don't want (like -Wunreachable-code) has no effect. Any pointers would be appreciated.

-- relpats_eht
Title: Re: Code::Blocks treating all warning options as checked
Post by: Jenna on August 11, 2010, 09:32:36 am
Change "Settings -> Compiler and debugger... -> Global compiler settings -> [the compiler you use] -> Other settings(rightmost tab)" "Compiler logging" to "Full commandline" and see in the build log what is really sent to the compiler.
Check your global compiler settings and double check your projects and build targets settings, to see if anything is wrong.

Title: Re: Code::Blocks treating all warning options as checked
Post by: relpats_eht on August 11, 2010, 05:32:22 pm
Ah, the global settings, I completely forgot those existed.

Thank you, fixed.