Code::Blocks Forums

User forums => Help => Topic started by: Scr3amer on January 04, 2016, 09:03:05 pm

Title: Compiling CodeBlocks from source : Warnings displayed
Post by: Scr3amer on January 04, 2016, 09:03:05 pm
Hello guys,

I finally managed to compile codeblocks from sources but each time I have several warnings. That's why I wanted to know when I can consider I have properly and successfully built the soft.
I am using GCC TDM 4.7.1 (shipped with C::B 13.12) and wX 3.0.2. And it was for SVN 10635 and 10636.

Here are some of the warnings I met (only for C::B and core plugins) :

\src\sdk\scripting\squirrel\sqcompiler.cpp|655|warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]| <- this one multiple times
\src\sdk\wxscintilla\src\ScintillaWX.cpp|628|warning: variable 'haveTextString' set but not used [-Wunused-but-set-variable]
\src\src\resources\resources.rc|137|warning: #warning Manifest: x86.manifest [-Wcpp]|

Thanks in advance for any help :D !
Title: Re: Compiling CodeBlocks from source : Warnings displayed
Post by: BlueHazzard on January 09, 2016, 12:43:17 pm
Code
\src\sdk\scripting\squirrel\sqcompiler.cpp|655|warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]| <- this one multiple times
squirrel thing, not really related to c::b, as far as it works it is ok ;) (and it works obviously)
Code
\src\sdk\wxscintilla\src\ScintillaWX.cpp|628|warning: variable 'haveTextString' set but not used [-Wunused-but-set-variable]
the warning says all... not really critical
Code
\src\src\resources\resources.rc|137|warning: #warning Manifest: x86.manifest [-Wcpp]|
absolute no idea, but if it works i would not bother...

greetings
Title: Re: Compiling CodeBlocks from source : Warnings displayed
Post by: stahta01 on January 09, 2016, 03:01:42 pm
Code
\src\src\resources\resources.rc|137|warning: #warning Manifest: x86.manifest [-Wcpp]|
absolute no idea, but if it works i would not bother...

I think the above warning is generated on purpose to confirm the Manifest matches the CPU wanted.
If you read the CB code and forum there was a time the wrong Manifest file was generated.

Tim S.
Title: Re: Compiling CodeBlocks from source : Warnings displayed
Post by: MortenMacFly on January 09, 2016, 04:19:47 pm
I think the above warning is generated on purpose to confirm the Manifest matches the CPU wanted.
That is certainly true. This is on purpose and nothing to worry about.