Wireshark mailing list archives
error: ‘qInitResources_about__init_variable__’ defined but not used [-Werror=unused-variable]
From: Gerlof Fokkema <gerlof.fokkema () gmail com>
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
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- error: ‘qInitResources_about__init_variable__’ defined but not used [-Werror=unused-variable] Gerlof Fokkema (Oct 14)
- Re: [Wireshark-dev] error: ‘qInitResources_about__init_variable__’ defined but not used [-Werror=unused-variable] Alexis La Goutte (Oct 14)
- Re: [Wireshark-dev] error: ‘qInitResources_about__init_variable__’ defined but not used [-Werror=unused-variable] Gerlof Fokkema (Oct 15)
- Re: [Wireshark-dev] error: ‘qInitResources_about__init_variable__’ defined but not used [-Werror=unused-variable] Alexis La Goutte (Oct 15)
- Re: [Wireshark-dev] error: ‘qInitResources_about__init_variable__’ defined but not used [-Werror=unused-variable] Gerlof Fokkema (Oct 15)
- Re: error: ‘qInitResources_about__init_variable__’ defined but not used [-Werror=unused-variable] Guy Harris (Oct 15)
- Re: [Wireshark-dev] error: ‘qInitResources_about__init_variable__’ defined but not used [-Werror=unused-variable] Gerlof Fokkema (Oct 15)
- Re: [Wireshark-dev] error: ‘qInitResources_about__init_variable__’ defined but not used [-Werror=unused-variable] Alexis La Goutte (Oct 15)