Author Topic: New wxSmith/wxSmithlib compiler option caused a compiler error  (Read 6682 times)

Offline yesno

  • Multiple posting newcomer
  • *
  • Posts: 19
New wxSmith/wxSmithlib compiler option caused a compiler error
« on: November 03, 2010, 09:09:11 am »
The error message was: "cc1plus.exe: error: unrecognized command line option "-Wno-attributes""
All ran fine after i have removed it from wxSmith.cbp (without error messages)

My compiler is MinGW 4.4.0 on WinXPSP3 (MinGW 3.4.5 doesn't know this option, too)
The svn revision is 6817 (rep. 6796)
The unknown option was introduced in revision 6756

The whole commandline was:
mingw32-g++.exe -Wall -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -Wno-attributes -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DBUILDING_PLUGIN -DwxUSE_UNICODE -DWXMAKINGDLL_PROPGRID -DwxPG_USE_WXMODULE=0 -march=i586 -Wall -IC:/Programme/wxWidgets/lib-2810440/gcc_lib/gcc_dll/mswu -IC:/Programme/wxWidgets/include-2810440 -I../../../include -I../../../sdk/wxpropgrid/include -I../../../sdk/wxscintilla/include -I../../../include/scripting/include -I../../../include/scripting/squirrel -I../../../include/scripting/sqplus -I../../../include/scripting/bindings -I../../../include/mozilla_chardet -I. -IC:/Programme/MinGW-4.4.0/include -IC:/Programme/CodeBlocks/include -IC:/SRC-Extern/codeblocks/trunk/src/plugins/contrib/wxSmith/properties -IC:/SRC-Extern/codeblocks/trunk/src/plugins/contrib/wxSmith -c C:/SRC-Extern/codeblocks/trunk/src/plugins/contrib/wxSmith/properties/wxsarraystringproperty.cpp -o ../../../.objs/plugins/contrib/wxSmithLib/properties/wxsarraystringproperty.o
cc1plus.exe: error: unrecognized command line option "-Wno-attributes"

With kind regards
yesno

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: New wxSmith/wxSmithlib compiler option caused a compiler error
« Reply #1 on: November 03, 2010, 11:10:50 am »
Trying r6819?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: New wxSmith/wxSmithlib compiler option caused a compiler error
« Reply #2 on: November 03, 2010, 11:16:10 am »
It's a valid option in gcc 4.4.5
Quote from: http://gcc.gnu.org/onlinedocs/gcc-4.4.5/gcc/Warning-Options.html#index-Wattributes-384
-Wno-attributes
    Do not warn if an unexpected __attribute__ is used, such as unrecognized attributes, function attributes applied to variables, etc. This will not stop errors for incorrect use of supported attributes.

and was valid in gcc 4.3.5 also: http://gcc.gnu.org/onlinedocs/gcc-4.3.5/gcc/Warning-Options.html#index-Wattributes-378.

I did not test MinGW 4.4.0, but are you sure the correct compiler is used ?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: New wxSmith/wxSmithlib compiler option caused a compiler error
« Reply #3 on: November 03, 2010, 11:29:58 am »
yesno: what is your compiler version: gcc --version?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline yesno

  • Multiple posting newcomer
  • *
  • Posts: 19
Re: New wxSmith/wxSmithlib compiler option caused a compiler error
« Reply #4 on: November 03, 2010, 12:12:01 pm »
It was indeed version 3.4.5, you are right and i am sorry

With kind regards
yesno