summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Screen <awscreen@chromium.org>2021-06-14 13:46:57 -0700
committerAlan Screen <awscreen@chromium.org>2021-06-14 13:46:57 -0700
commit2fda35e2407284ef9ecab8239f0585fd98de2130 (patch)
tree635af4102b56a8f784763885515f25eb023ce6c8
parente9be5fd6d723a435ca2da162f9e0ffcb688747c1 (diff)
downloadnasm-2fda35e2407284ef9ecab8239f0585fd98de2130.tar.gz
Disable compiler warning flag for set but unused variable
Needed since clang is now using -Wunused-but-set-variable. Bug: pdfium:1691 Change-Id: I085a60d7a60bdbb38477766237a1809d82a09577
-rw-r--r--BUILD.gn3
1 files changed, 3 insertions, 0 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 2c6981e6..ebd8b7fe 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -78,6 +78,9 @@ config("nasm_config") {
# NASM sometimes uses uninitialized values.
"-Wno-uninitialized",
+
+ # NASM sometimes set variables but doesn't use them.
+ "-Wno-unused-but-set-variable",
]
} else if (is_win) {
# Please note that's a slightly different set of warnings.