summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--BUILD.gn3
1 files changed, 3 insertions, 0 deletions
diff --git a/BUILD.gn b/BUILD.gn
index b3a56f70b0..99e71cfbc8 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -72,6 +72,9 @@ config("pdfium_core_config") {
cflags = []
configs = [ ":pdfium_common_config" ]
defines = [ "V8_DEPRECATION_WARNINGS" ]
+ if (is_clang) {
+ cflags += [ "-Wshadow" ]
+ }
if (is_linux) {
if (current_cpu == "x64") {
defines += [ "_FX_CPU_=_FX_X64_" ]