Author Topic: Code::Blocks treating all warning options as checked  (Read 3754 times)

Offline relpats_eht

  • Single posting newcomer
  • *
  • Posts: 4
Code::Blocks treating all warning options as checked
« 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

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Code::Blocks treating all warning options as checked
« Reply #1 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.


Offline relpats_eht

  • Single posting newcomer
  • *
  • Posts: 4
Re: Code::Blocks treating all warning options as checked
« Reply #2 on: August 11, 2010, 05:32:22 pm »
Ah, the global settings, I completely forgot those existed.

Thank you, fixed.