Code::Blocks Forums
User forums => General (but related to Code::Blocks) => Topic started by: headkase on January 10, 2016, 11:29:11 pm
-
In a C project, in the global compiler options, put "-std=c11" in other compiler options, enable "-Wextra", compile your project, then disable Wextra and see if there are "-Wall and -g" options that you can't get rid of during compilation from that point on.
Using SVN 10640.
-
Did you remove the options from the Project compiler settings?
Tim S.
-
In the project build options I can get rid of the extra debug symbols (-g) but -Wall is neither in the global compiler options nor the project build options yet it is still present.
Some extra information, I am now on Arch Linux 64-bit, I did import some editor color themes using cb_share_config, attaching my Code::Blocks ~/.config/codeblocks directory below.
-
No such issue here.
Are you aware, that in the wizard created c-project "-g" is set in the debug-target's settings only, but "-Wall" for both targets (on project-level) ?
-
Ok, thank you jens.
In the project build options, debug, policy = use target options only does not compile with -Wall. Policy = use project options only does compile with -Wall. No where, in global or build options is -Wall checked in the GUI.
Since this seems to be expected behavior then I apologize for the time spent. ;)
-
Ok, thank you jens.
In the project build options, debug, policy = use target options only does not compile with -Wall. Policy = use project options only does compile with -Wall. No where, in global or build options is -Wall checked in the GUI.
Since this seems to be expected behavior then I apologize for the time spent. ;)
Did you check the project compiler options?
Do you know how to check the project options instead of the target options?
Tim S.
-
Do you know how to check the project options instead of the target options?
Actually no I did not know how to do that. Poking around I found them: Project properties -> project build options. And there -Wall is specified. Thank you, I learned something new. And again I apologize that my ignorance wasted time here.