diff --git a/cfg/qt.cfg b/cfg/qt.cfg index d5e3ebd71..c3380c1f4 100644 --- a/cfg/qt.cfg +++ b/cfg/qt.cfg @@ -1318,11 +1318,13 @@ + + diff --git a/test/cfg/qt.cpp b/test/cfg/qt.cpp index 54be3d2de..03b2b9fb0 100644 --- a/test/cfg/qt.cpp +++ b/test/cfg/qt.cpp @@ -54,6 +54,9 @@ void validCode(int * pIntPtr) Q_FOREVER { } } + + if (Q_LIKELY(pIntPtr)) {} + if (Q_UNLIKELY(!pIntPtr)) {} } void ignoredReturnValue()