When compiling with clang the Q_OBJECT macro emits an inconsistent-override-warning. In a large project with many Q_OBJECTs this leads to a huge number of warnings which are unrelated to the project itself.
Below is a patch which should fix the issue. I've based the changes on a stripped down version of how this is solved in Qt5.
When compiling with clang the
Q_OBJECT
macro emits aninconsistent-override-warning
. In a large project with manyQ_OBJECT
s this leads to a huge number of warnings which are unrelated to the project itself.Below is a patch which should fix the issue. I've based the changes on a stripped down version of how this is solved in Qt5.