qt5base-lts/tests/auto/corelib
Thiago Macieira e1d0da6526 Fix Clang -Wexpansion-to-defined warning by deprecating QT_SUPPORTS
The C and C++ standards say it's undefined whether the preprocessor
supports macros that expand to defined() will operate as an ifdef.
Clang 3.9 started complaining about that fact.

One solution was to change QT_SUPPORTS to check for zero or one, which
means we need to change the #defines QT_NO_xxx to #define QT_NO_xxx 1.
The C standard says we don't need to #define to 0, as an unknown token
is interpreted as zero. However, that might produce a warning (GCC with
-Wundef), so changing the macro this way is not recommended.

Instead, we deprecate the macro and replace the uses with #ifdef/ndef.

Change-Id: Id75834dab9ed466e94c7ffff1444874d5680b96a
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2016-05-08 04:25:27 +00:00
..
animation Extend tst_QPauseAnimation::pauseAndPropertyAnimations blacklist 2015-06-20 15:25:58 +00:00
codecs Fix utf8->utf16 BOM/ZWNBSP decoding. 2015-12-21 09:56:49 +00:00
global Fix qSetMessagePattern to have many time/backtrace parts 2016-03-25 11:03:43 +00:00
io remove redundant OTHER_FILES assignments 2016-05-02 18:34:47 +00:00
itemmodels tst_QItemModel: Use a QTemporaryDir for test data of QDirModel. 2015-11-27 22:50:26 +00:00
json Update testdata 2016-02-17 04:50:50 +00:00
kernel Don't copy the functor object for each signal emission 2016-04-13 09:35:13 +00:00
mimetypes QMimeDatabase: fix mimeTypeForUrl for mailto URLs 2016-04-23 08:44:45 +00:00
plugin Disable tests requiring shared build when compiling statically 2016-03-11 08:30:27 +00:00
statemachine Merge remote-tracking branch 'origin/5.5' into 5.6 2016-01-19 10:03:01 +01:00
thread tst_QAtomicInteger: fix UBs (signed overflow) 2016-03-24 16:16:15 +00:00
tools Fix Clang -Wexpansion-to-defined warning by deprecating QT_SUPPORTS 2016-05-08 04:25:27 +00:00
xml tst_QXmlStream::writerHangs(): Create file in temporary directory 2016-03-16 08:15:59 +00:00
corelib.pro