qt5base-lts/tests/auto/tools
Simon Hausmann 310031188c Fix moc stumbling over gcc __attribute__ extensions
Reported by David Faure.

In KDE a DEPRECATED macro gets defined in a header file created by cmake.
The define is not guarded with #if Q_CC_GNU or similar because at cmake
time the compiler is determined. Therefore moc suddenly sees this gcc
specific token and stumbles over it.

This patch simply defines an empty __attribute__ macro that will expand
to nothing and thus become invisible to moc's "C++ parser" after the
pre-processing.

Change-Id: I4448b9ac3f72b6334e32b27484401fb0fca23a0c
Reviewed-by: David Faure <faure@kde.org>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
2012-10-01 14:27:14 +02:00
..
moc Fix moc stumbling over gcc __attribute__ extensions 2012-10-01 14:27:14 +02:00
qdbuscpp2xml Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qdbusxml2cpp Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qmake Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
rcc Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
uic Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
tools.pro Add unit testing for the qdbusxml2cpp tool 2012-04-21 01:18:56 +02:00