Author Topic: Compiling CodeBlocks from source : Warnings displayed  (Read 3811 times)

Offline Scr3amer

  • Multiple posting newcomer
  • *
  • Posts: 16
Compiling CodeBlocks from source : Warnings displayed
« 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 !
« Last Edit: January 04, 2016, 09:04:54 pm by Scr3amer »

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3352
Re: Compiling CodeBlocks from source : Warnings displayed
« Reply #1 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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7790
    • My Best Post
Re: Compiling CodeBlocks from source : Warnings displayed
« Reply #2 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.
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Compiling CodeBlocks from source : Warnings displayed
« Reply #3 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ