Author Topic: Please test a possible bug.  (Read 4114 times)

Offline headkase

  • Almost regular
  • **
  • Posts: 159
Please test a possible bug.
« 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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Please test a possible bug.
« Reply #1 on: January 10, 2016, 11:35:18 pm »
Did you remove the options from the Project compiler settings?

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

Offline headkase

  • Almost regular
  • **
  • Posts: 159
Re: Please test a possible bug.
« Reply #2 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.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Please test a possible bug.
« Reply #3 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) ?

Offline headkase

  • Almost regular
  • **
  • Posts: 159
Re: Please test a possible bug.
« Reply #4 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.  ;)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Please test a possible bug.
« Reply #5 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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline headkase

  • Almost regular
  • **
  • Posts: 159
Re: Please test a possible bug.
« Reply #6 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.