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:
parent
5fb974cf47
commit
96c78ec737
|
@ -115,6 +115,13 @@ config("dawn_internal") {
|
|||
|
||||
# Allow the use of __uuidof()
|
||||
"-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 {
|
||||
cflags += [ "-pedantic" ]
|
||||
|
|
Loading…
Reference in New Issue