Author Topic: Build warning on the latest CC_branch, ( I guess it's the same as trunk)  (Read 4140 times)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6035
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Hi, I found a build warning, I'm using TDM-GCC 4.5 dw2 compiler, and the latest CC-branch rev 6345. As Morten merged from trunk yesterday.

It happened when I'm building CodeSnippets plugin

These are build warnings, see the build log:


Quote
-------------- Build: App - Win32 in Code Snippets ---------------

[  3.7%] g++.exe -Wall -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DWXUSINGDLL -DHAVE_W32API_H -D__WXMSW__ -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -DBUILDING_PLUGIN -DNO_LOGGING     -I..\..\..\include -I..\..\..\sdk\wxscintilla\include -I..\..\..\src -ID:\code\wxWidgets-2.8.11\include -ID:\code\wxWidgets-2.8.11\lib\gcc_dll\mswu -ISearch -Ieditor -I. -I..\..\..\include\tinyxml -I..\..\..\include\mozilla_chardet  -c F:\cb\cb_ccbranch\src\plugins\contrib\codesnippets\Search\DirectoryParamsPanel.cpp -o ..\..\..\.objs\plugins\contrib\codesnippets\app\Search\DirectoryParamsPanel.o
F:\cb\cb_ccbranch\src\plugins\contrib\codesnippets\Search\DirectoryParamsPanel.cpp:18:17: warning: ..\..\..\include/sdk.h.gch: not used because `wxPG_USE_WXMODULE' not defined
[  7.4%] g++.exe -Wall -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DWXUSINGDLL -DHAVE_W32API_H -D__WXMSW__ -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -DBUILDING_PLUGIN -DNO_LOGGING     -I..\..\..\include -I..\..\..\sdk\wxscintilla\include -I..\..\..\src -ID:\code\wxWidgets-2.8.11\include -ID:\code\wxWidgets-2.8.11\lib\gcc_dll\mswu -ISearch -Ieditor -I. -I..\..\..\include\tinyxml -I..\..\..\include\mozilla_chardet  -c F:\cb\cb_ccbranch\src\plugins\contrib\codesnippets\Search\SearchInPanel.cpp -o ..\..\..\.objs\plugins\contrib\codesnippets\app\Search\SearchInPanel.o
F:\cb\cb_ccbranch\src\plugins\contrib\codesnippets\Search\SearchInPanel.cpp:18:17: warning: ..\..\..\include/sdk.h.gch: not used because `wxPG_USE_WXMODULE' not defined
[ 11.1%] g++.exe -Wall -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DWXUSINGDLL -DHAVE_W32API_H -D__WXMSW__ -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -DBUILDING_PLUGIN -DNO_LOGGING     -I..\..\..\include -I..\..\..\sdk\wxscintilla\include -I..\..\..\src -ID:\code\wxWidgets-2.8.11\include -ID:\code\wxWidgets-2.8.11\lib\gcc_dll\mswu -ISearch -Ieditor -I. -I..\..\..\include\tinyxml -I..\..\..\include\mozilla_chardet  -c F:\cb\cb_ccbranch\src\plugins\contrib\codesnippets\Search\TextFileSearcher.cpp -o ..\..\..\.objs\plugins\contrib\codesnippets\app\Search\TextFileSearcher.o
F:\cb\cb_ccbranch\src\plugins\contrib\codesnippets\Search\TextFileSearcher.cpp:11:37: warning: ..\..\..\include/sdk.h.gch: not used because `wxPG_USE_WXMODULE' not defined
.....


[100.0%] g++.exe -L..\..\..\devel -L..\..\..\base\tinyxml -LD:\code\wxWidgets-2.8.11\lib\gcc_dll  -o ..\..\..\devel\codesnippets.exe ..\..\..\.objs\plugins\contrib\codesnippets\app\snippetsconfig.o ..\..\..\.objs\plugins\contrib\codesnippets\app\Search\DirectoryParamsPanel.o ..\..\..\.objs\plugins\contrib\codesnippets\app\Search\InsertIndexManager.o ..\..\..\.objs\plugins\contrib\codesnippets\app\Search\MainPanel.o ..\..\..\.objs\plugins\contrib\codesnippets\app\Search\SearchInPanel.o ..\..\..\.objs\plugins\contrib\codesnippets\app\Search\TextFileSearcher.o ..\..\..\.objs\plugins\contrib\codesnippets\app\Search\TextFileSearcherRegEx.o ..\..\..\.objs\plugins\contrib\codesnippets\app\Search\TextFileSearcherText.o ..\..\..\.objs\plugins\contrib\codesnippets\app\Search\ThreadSearch.o ..\..\..\.objs\plugins\contrib\codesnippets\app\Search\ThreadSearchConfPanel.o ..\..\..\.objs\plugins\contrib\codesnippets\app\Search\ThreadSearchEvent.o ..\..\..\.objs\plugins\contrib\codesnippets\app\Search\ThreadSearchFindData.o ..\..\..\.objs\plugins\contrib\codesnippets\app\Search\ThreadSearchFrame.o ..\..\..\.objs\plugins\contrib\codesnippets\app\Search\ThreadSearchLoggerBase.o ..\..\..\.objs\plugins\contrib\codesnippets\app\Search\ThreadSearchLoggerList.o ..\..\..\.objs\plugins\contrib\codesnippets\app\Search\ThreadSearchLoggerTree.o ..\..\..\.objs\plugins\contrib\codesnippets\app\Search\ThreadSearchThread.o ..\..\..\.objs\plugins\contrib\codesnippets\app\Search\ThreadSearchTrace.o ..\..\..\.objs\plugins\contrib\codesnippets\app\Search\ThreadSearchView.o ..\..\..\.objs\plugins\contrib\codesnippets\app\Search\ThreadSearchViewManagerBase.o ..\..\..\.objs\plugins\contrib\codesnippets\app\Search\ThreadSearchViewManagerLayout.o ..\..\..\.objs\plugins\contrib\codesnippets\app\Search\ThreadSearchViewManagerMessagesNotebook.o ..\..\..\.objs\plugins\contrib\codesnippets\app\codesnippetsapp.o ..\..\..\.objs\plugins\contrib\codesnippets\app\codesnippetsevent.o ..\..\..\.objs\plugins\contrib\codesnippets\app\codesnippetstreectrl.o ..\..\..\.objs\plugins\contrib\codesnippets\app\codesnippetswindow.o ..\..\..\.objs\plugins\contrib\codesnippets\app\csutils.o ..\..\..\.objs\plugins\contrib\codesnippets\app\editor\dragscroll.o ..\..\..\.objs\plugins\contrib\codesnippets\app\editor\dragscrollcfg.o ..\..\..\.objs\plugins\contrib\codesnippets\app\editor\dragscrollevent.o ..\..\..\.objs\plugins\contrib\codesnippets\app\editor\editproperties.o ..\..\..\.objs\plugins\contrib\codesnippets\app\editor\prefs.o ..\..\..\.objs\plugins\contrib\codesnippets\app\editor\scbeditor.o ..\..\..\.objs\plugins\contrib\codesnippets\app\editor\seditorbase.o ..\..\..\.objs\plugins\contrib\codesnippets\app\editor\seditorcolourset.o ..\..\..\.objs\plugins\contrib\codesnippets\app\editor\seditormanager.o ..\..\..\.objs\plugins\contrib\codesnippets\app\editor\sprintdlg.o ..\..\..\.objs\plugins\contrib\codesnippets\app\editsnippetframe.o ..\..\..\.objs\plugins\contrib\codesnippets\app\settingsdlg.o ..\..\..\.objs\plugins\contrib\codesnippets\app\settingsdlgform.o ..\..\..\.objs\plugins\contrib\codesnippets\app\snippetitemdata.o ..\..\..\.objs\plugins\contrib\codesnippets\app\snippetproperty.o ..\..\..\.objs\plugins\contrib\codesnippets\app\snippetpropertyform.o ..\..\..\.objs\plugins\contrib\codesnippets\app\GenericMessageBox.o ..\..\..\.objs\plugins\contrib\codesnippets\app\snippetsimages.o ..\..\..\.objs\plugins\contrib\codesnippets\app\version.o  ..\..\..\.objs\plugins\contrib\codesnippets\app\generic.res  -Wl,--enable-auto-import -mthreads  -lwxmsw28u -lwxscintilla -lcodeblocks  -mwindows
Output size is 2.53 MB
[100.0%] Running project post-build steps
update.bat


Thanks.


Edit
Oh, I found that there are two target in the Code snippet. One is to generate a DLL as plugin, the other is a exe file. The warning happend when I do a "rebuild workplace". :D


« Last Edit: June 12, 2010, 09:37:55 am by ollydbg »
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9699
F:\cb\cb_ccbranch\src\plugins\contrib\codesnippets\Search\TextFileSearcher.cpp:11:37: warning: ..\..\..\include/sdk.h.gch: not used because `wxPG_USE_WXMODULE' not defined
This is correct for the CodeSnippets application (not the plugin), you can safely ignore this warning.
« Last Edit: June 12, 2010, 09:59:57 pm by MortenMacFly »
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