Package: libwxbase2.8-dev
Version: 2.8.12.1+dfsg-2
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:
http://trac.wxwidgets.org/ticket/16028
Description: Fix compiler warning about an unused local typedef.
 gcc-4.8 with -Wunused-local-typedefs warns about the unused local typedef
 'wxDummyCheckInt' in wx/debug.h.
Author: Benjamin Drung <bdr...@ubuntu.com>
Bug: http://trac.wxwidgets.org/ticket/16028

--- a/include/wx/debug.h
+++ b/include/wx/debug.h
@@ -191,7 +191,7 @@
 /*  as wxCHECK2 but with a message explaining why we fail */
 
 #ifdef __GNUC__
-    #define wxFORCE_SEMICOLON typedef int wxDummyCheckInt
+    #define wxFORCE_SEMICOLON typedef int wxDummyCheckInt __attribute__((unused))
     /* Note: old gcc versions (e.g. 2.8) give an internal compiler error */
     /*     on a simple forward declaration, when used in a template    */
     /*     function, so rather use a dummy typedef which does work...  */

Reply via email to