[Freewx-maint] Bug#740115: wx/debug.h:194:43: warning: typedef 'wxDummyCheckInt' locally defined but not used

Benjamin Drung bdrung at debian.org
Tue Feb 25 22:06:54 UTC 2014

Package: libwxbase2.8-dev
Severity: normal
Tags: patch

Dear Maintainer,

Building Audacity with gcc 4.8 clutters the build log with these warnings:

/usr/include/wx-2.8/wx/buffer.h: In member function 'void wxMemoryBuffer::AppendByte(char)':
/usr/include/wx-2.8/wx/debug.h:194:43: warning: typedef 'wxDummyCheckInt' locally defined but not used [-Wunused-local-typedefs]
     #define wxFORCE_SEMICOLON typedef int wxDummyCheckInt
/usr/include/wx-2.8/wx/debug.h:224:9: note: in expansion of macro 'wxFORCE_SEMICOLON'
         wxFORCE_SEMICOLON /* just to force a semicolon */
/usr/include/wx-2.8/wx/debug.h:233:38: note: in expansion of macro 'wxCHECK2_MSG'
 #define wxCHECK_RET(cond, msg)       wxCHECK2_MSG(cond, return, msg)
/usr/include/wx-2.8/wx/buffer.h:289:9: note: in expansion of macro 'wxCHECK_RET'
         wxCHECK_RET( m_bufdata->m_data, wxT("invalid wxMemoryBuffer") );

E.g.: https://buildd.debian.org/status/fetch.php?pkg=audacity&arch=i386&ver=2.0.5-1&stamp=1382442272

Please apply the attached patch to silence the warnings.

PS: The patch is already forwarded to upstream:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-gcc-4.8-unused-typedef-warning.patch
Type: text/x-diff
Size: 782 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/freewx-maint/attachments/20140225/a1c7faec/attachment.patch>

More information about the Freewx-maint mailing list