Include climits explicitly instead of relying on transitive includes
Pick-to: 6.8 6.5 Change-Id: Ib55b337aa6e0a93c7ac7ee9bf492784cc81808d7 Reviewed-by: Marc Mutz <marc.mutz@qt.io> (cherry picked from commit 158f2c95c8b69f586bd1155fc5993bdb61f76e77) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
33b0661cc6
commit
27f16490fa
@ -12,6 +12,8 @@
|
||||
#include <private/qthreadpool_p.h>
|
||||
#include <private/qobject_p.h>
|
||||
|
||||
#include <climits> // For INT_MAX
|
||||
|
||||
// GCC 12 gets confused about QFutureInterfaceBase::state, for some non-obvious
|
||||
// reason
|
||||
// warning: ‘unsigned int __atomic_or_fetch_4(volatile void*, unsigned int, int)’ writing 4 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=]
|
||||
|
@ -9,6 +9,7 @@
|
||||
#include <QtCore/qpointer.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <climits> // For INT_MAX
|
||||
#include <memory>
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
|
@ -18,6 +18,8 @@
|
||||
#include <QtGui/private/qbasicvulkanplatforminstance_p.h>
|
||||
#include <QtCore/qsize.h>
|
||||
|
||||
#include <climits> // For UINT_MAX
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QVkKhrDisplayVulkanInstance : public QBasicPlatformVulkanInstance
|
||||
|
Loading…
x
Reference in New Issue
Block a user