News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Please test a possible bug.

Started by headkase, January 10, 2016, 11:29:11 PM

Previous topic - Next topic

headkase

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.

stahta01

Did you remove the options from the Project compiler settings?

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

headkase

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.

Jenna

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) ?

headkase

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.  ;)

stahta01

Quote from: headkase on January 11, 2016, 12:34:56 AM
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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

headkase

Quote from: stahta01 on January 11, 2016, 12:39:09 AMDo 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.