我正在使用Linux Mint。我已经尝试从repos安装wxwidgets并完成它,但是在编译标准代码时(来自wxwidgets项目模板)得到了这个警告(以及更多):
||=== aaaa, Debug ===|
/usr/include/wx-2.8/wx/buffer.h||In member function ‘void wxMemoryBuffer::AppendByte(char)’:|
/usr/include/wx-2.8/wx/debug.h|194|warning: typedef ‘wxDummyCheckInt’ locally defined but not used [-Wunused-local-typedefs]|
/usr/include/wx-2.8/wx/debug.h|224|note: in expansion of macro ‘wxFORCE_SEMICOLON’|
/usr/include/wx-2.8/wx/debug.h|233|note: in expansion of macro ‘wxCHECK2_MSG’|
/usr/include/wx-2.8/wx/buffer.h|289|note: in expansion of macro ‘wxCHECK_RET’|
/usr/include/wx-2.8/wx/vector.h||In member function ‘wxVectorBase& wxVectorBase::operator=(const wxVectorBase&)’:|
/usr/include/wx-2.8/wx/debug.h|194|warning: typedef ‘wxDummyCheckInt’ locally defined but not used [-Wunused-local-typedefs]|
/usr/include/wx-2.8/wx/debug.h|224|note: in expansion of macro ‘wxFORCE_SEMICOLON’|
/usr/include/wx-2.8/wx/debug.h|186|note: in expansion of macro ‘wxCHECK2_MSG’|
/usr/include/wx-2.8/wx/debug.h|183|note: in expansion of macro ‘wxCHECK_MSG’|
/usr/include/wx-2.8/wx/vector.h|129|note: in expansion of macro ‘wxCHECK’|
/usr/include/wx-2.8/wx/debug.h|194|warning: typedef ‘wxDummyCheckInt’ locally defined but not used [-Wunused-local-typedefs]|
/usr/include/wx-2.8/wx/debug.h|224|note: in expansion of macro ‘wxFORCE_SEMICOLON’|
/usr/include/wx-2.8/wx/debug.h|189|note: in expansion of macro ‘wxCHECK2_MSG’|
/usr/include/wx-2.8/wx/vector.h|148|note: in expansion of macro ‘wxCHECK2’|
/usr/include/wx-2.8/wx/vector.h|158|note: in expansion of macro ‘WX_DECLARE_VECTORBASE’|
/usr/include/wx-2.8/wx/clntdata.h|172|note: in expansion of macro ‘_WX_DECLARE_VECTOR’|
/usr/include/wx-2.8/wx/clntdata.h||In member function ‘void wxClientDataDictionaryPairVector::push_back(const wxClientDataDictionaryPair&)’:|
/usr/include/wx-2.8/wx/debug.h|194|warning: typedef ‘wxDummyCheckInt’ locally defined but not used [-Wunused-local-typedefs]|
答案 0 :(得分:1)
当wxWidgets 2.8于7。5年前发布时,-Wunused-local-typedefs
警告不存在(或者至少在默认情况下没有启用,我不再记得细节了)。请使用wxWidgets 3.0.0,它没有这些警告,并且有大量新功能和错误修复。