Wireshark-dev: [Wireshark-dev] error: ‘qInitResources_about__init_variable__’ defined but not u
From: Gerlof Fokkema <gerlof.fokkema@xxxxxxxxx>
Date: Wed, 14 Oct 2015 17:04:45 +0000
Hello all,

I'm trying to compile wireshark 1.99+ from git and have a few issues while doing so.
The first issue was mentioned elsewhere on the mailing list already (removing -Wc++-compat).

The second error however I don't see mentioned anywhere and occurs only when compiling wireshark-qt:

In file included from ../../image/about.rcc.cpp:9:0:
../../image/about.rcc.cpp:1627:44: error: ‘qInitResources_about__init_variable__’ defined but not used [-Werror=unused-variable]
Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_about))
^
/usr/include/qt4/QtCore/qglobal.h:939:21: note: in definition of macro ‘Q_CONSTRUCTOR_FUNCTION0’
static const int AFUNC ## __init_variable__ = AFUNC();
^
../../image/about.rcc.cpp:1627:1: note: in expansion of macro ‘Q_CONSTRUCTOR_FUNCTION’
Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_about))
^
../../image/about.rcc.cpp:1627:24: note: in expansion of macro ‘QT_MANGLE_NAMESPACE’
Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_about))

The config.log file (building most recent git version, tried 1.99.9 as well with the same result).
http://pastebin.com/sGKwiPeH

Any ideas on what causes this?

Kind regards,
Gerlof Fokkema