When compiling a collection of files in a Qt project, I see many warnings similar to this one.
In file included from /usr/local/Trolltech/Qt-4.8.6/include/QtGui/qevent.h:52: /usr/local/Trolltech/Qt-4.8.6/include/QtGui/qmime.h:119:10: warning: private field 'type' is not used [-Wunused-private-field] char type; ^
In sentences from different searches, I added an entry
QMAKE_CXXFLAGS + = -Wno-unused-private-field
in the .pro file and confirmed that it displays correctly in compiler calls, but I still get this warning.
I am running Qt on Mac with clang.
Thanks in advance for any ideas.
source share