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:
Corentin Wallez 2020-07-01 14:36:56 +00:00 committed by Commit Bot service account
parent 5fb974cf47
commit 96c78ec737
1 changed files with 7 additions and 0 deletions

View File

@ -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" ]