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>
diff --git a/src/common/BUILD.gn b/src/common/BUILD.gn
index 59a2305..540cbea 100644
--- a/src/common/BUILD.gn
+++ b/src/common/BUILD.gn
@@ -115,6 +115,13 @@
# 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" ]