qt5base-lts/qmake/library
Marc Mutz be0dc7fbb8 QMake: replace a Q_ASSERT() with a Q_UNREACHABLE()
In release mode, the Q_ASSERT() is a no-op, and Clang rightfully
pointed out that, in that case, the bool ok variable will be used
uninitialized.

Fix by using Q_UNREACHABLE(), which has an effect in both debug and
release builds.

Pick-to: 6.3 6.2 5.15
Change-Id: I33480aabe1c5233d1caddf9404f475ca9fcb8eaf
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2022-01-25 03:48:46 +01:00
..
ioutils.cpp QtBase: replace windows.h with qt_windows.h 2021-11-23 12:53:46 +08:00
ioutils.h Improve QMakeLibraryInfo encapsulation 2021-03-01 17:37:03 +01:00
proitems.cpp QDuplicateTracker: accept the number of elements to reserve as a ctor argument 2021-07-14 08:57:39 +02:00
proitems.h Fix undefined behavior in ProString/ProKey::appendTo 2020-12-02 10:21:45 +01:00
qmake_global.h
qmakebuiltins.cpp QtBase: replace windows.h with qt_windows.h 2021-11-23 12:53:46 +08:00
qmakeevaluator_p.h Replace discouraged Q_MOVABLE_TYPE by Q_RELOCATABLE_TYPE 2020-11-30 17:16:21 +01:00
qmakeevaluator.cpp QtBase: replace windows.h with qt_windows.h 2021-11-23 12:53:46 +08:00
qmakeevaluator.h Port qmake from QStringRef to QStringView 2020-06-05 09:07:14 +02:00
qmakeglobals.cpp QtBase: replace windows.h with qt_windows.h 2021-11-23 12:53:46 +08:00
qmakeglobals.h qmake: Sync back changes from qttools 2020-11-26 20:05:41 +01:00
qmakeparser.cpp QMake: replace a Q_ASSERT() with a Q_UNREACHABLE() 2022-01-25 03:48:46 +01:00
qmakeparser.h Replace discouraged Q_MOVABLE_TYPE by Q_RELOCATABLE_TYPE 2020-11-30 17:16:21 +01:00
qmakevfs.cpp Add ; to Q_UNUSED 2020-07-07 11:51:48 +02:00
qmakevfs.h
registry_p.h
registry.cpp Add ; to Q_UNUSED 2020-07-07 11:51:48 +02:00