Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

cb_release_type and GCV's

<< < (4/6) > >>

MortenMacFly:

--- Quote from: Biplab on December 31, 2012, 06:20:50 am ---
--- Quote ---GCC allows you to use -g with -O. The shortcuts taken by optimized code may occasionally produce surprising results: some variables you declared may not exist at all; flow of control may briefly move where you did not expect it; some statements may not be executed because they compute constant results or their values are already at hand; some statements may execute in different places because they have been moved out of loops.
--- End quote ---

--- End quote ---
Well this should be the actual warning that comes when you enable optimisations with debugging symbols in the annoying dialog. ;-)

Biplab:
I just tried to compile C::B by defining -g -O2 together. GCC didn't emit any warnings. I'm using C::B-12.11-MinGW + trunk source.


--- Code: ---mingw32-g++.exe -O2 -Wall -g   -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE  -Woverloaded-virtual -DEXPORT_LIB -DEXPORT_EVENTS -DWXMAKINGDLL_SCI    -IC:\wxWidgets\include -IC:\wxWidgets\contrib\include -IC:\wxWidgets\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Iinclude -Iinclude\tinyxml -Iinclude\scripting\bindings -Iinclude\scripting\include -Iinclude\scripting\sqplus -Iinclude\mozilla_chardet -Isdk\wxpropgrid\include -Isdk\mozilla_chardet\src  -c D:\DevTools\trunk\src\sdk\cbdebugger_interfaces.cpp -o .objs\sdk\cbdebugger_interfaces.o
--- End code ---

What is the actual warning message that you are getting?

Jenna:
You get a warning, if you set it via build options.

Biplab:

--- Quote from: jens on December 31, 2012, 02:02:44 pm ---You get a warning, if you set it via build options.

--- End quote ---

Sorry, I did that via Project > Build Options. But I'm not getting any warning. Build goes on smoothly.

Jenna:
I just read, that you use 12.11, but this comes with trunk after the release, as far as I know.
An annoying dialog pops up, immediately when you set the second option.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version