commit | 099a80dd762afd01d69fa0422f3ff21a06dcf111 | [log] [tgz] |
---|---|---|
author | Jamie Madill <jmadill@chromium.org> | Mon Mar 18 11:38:53 2019 -0400 |
committer | Jamie Madill <jmadill@chromium.org> | Mon Mar 18 11:38:53 2019 -0400 |
tree | 1ca3e2dbedf1aea1c28459514c8be850499c230d | |
parent | 40c16ec0b3ad03fc170f1369a58e7bbe662d82cd [diff] [blame] |
Suppress MSVC warning about unused variable. One variable was only used in an 'assert' call. MSVC flagged this as unused in Release. Suppress the warning and also add a static cast to void so the variable becomes referenced.
diff --git a/BUILD.gn b/BUILD.gn index 3e061ac..c3e0670 100644 --- a/BUILD.gn +++ b/BUILD.gn
@@ -152,6 +152,7 @@ if (is_win && !is_clang) { cflags = [ "/wd4018", # signed/unsigned mismatch + "/wd4189", # local variable is initialized but not referenced ] }