Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: headkase on January 10, 2016, 11:29:11 pm

Title: Please test a possible bug.
Post 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.
Title: Re: Please test a possible bug.
Post by: stahta01 on January 10, 2016, 11:35:18 pm
Did you remove the options from the Project compiler settings?

Tim S.
Title: Re: Please test a possible bug.
Post by: headkase on January 10, 2016, 11:46:52 pm
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.
Title: Re: Please test a possible bug.
Post by: Jenna on January 11, 2016, 12:10:50 am
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) ?
Title: Re: Please test a possible bug.
Post by: 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.  ;)
Title: Re: Please test a possible bug.
Post by: stahta01 on January 11, 2016, 12:39:09 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.
Title: Re: Please test a possible bug.
Post by: headkase on January 11, 2016, 01:11:01 am
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.