PDA

View Full Version : GCC with qmetaobject_p.h error



cic
26th August 2013, 12:43
Is there any way to disable the warning setup?



/Qt/macosx/qt-4.8.4-macosx/include/QtCore/private/../../../src/corelib/kernel/qmetaobject_p.h:148:19: error: 'static' function 'normalizeTypeInternal' declared in header file should be declared 'static inline' [-Werror,-Wunneeded-internal-declaration]
static QByteArray normalizeTypeInternal(const char *t, const char *e, bool fixScope = false, bool adjustConst = true)


++

solved. by adding #pragma GCC diagnostic warning "-Wunused-function"