mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 15:46:28 +00:00
Disable -Wtautological-type-limit-compare
This unblocks a roll into Skia.
Allow comparison against type limits that might be tautological on
32bit or 64bit systems. Without this the following produces an error
on 64bit:
if (myUint64 > std::numeric_limits<size_t>::max()) {...}
Bug: None
Change-Id: I31fc579738b6fb85b40cfeac8f30936161a15da1
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/24162
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
5fb974cf47
commit
96c78ec737
@@ -115,6 +115,13 @@ config("dawn_internal") {
|
|||||||
|
|
||||||
# Allow the use of __uuidof()
|
# Allow the use of __uuidof()
|
||||||
"-Wno-language-extension-token",
|
"-Wno-language-extension-token",
|
||||||
|
|
||||||
|
# Allow comparison against type limits that might be tautological on
|
||||||
|
# 32bit or 64bit systems. Without this the following produces an error
|
||||||
|
# on 64bit:
|
||||||
|
#
|
||||||
|
# if (myUint64 > std::numeric_limits<size_t>::max()) {...}
|
||||||
|
"-Wno-tautological-type-limit-compare",
|
||||||
]
|
]
|
||||||
} else {
|
} else {
|
||||||
cflags += [ "-pedantic" ]
|
cflags += [ "-pedantic" ]
|
||||||
|
|||||||
Reference in New Issue
Block a user