Enable -Wshadow

Enable -Wshadow for upstream pigweed to improve compatibility with
projects that decide to enable this flag.

Change-Id: I7e1ce22f245e719ec78118370e591437abe07f0a
diff --git a/pw_build/BUILD.gn b/pw_build/BUILD.gn
index 343a14c..38afdf8 100644
--- a/pw_build/BUILD.gn
+++ b/pw_build/BUILD.gn
@@ -52,6 +52,13 @@
   cflags_cc = [ "-Wnon-virtual-dtor" ]
 }
 
+# This config contains warnings that we don't necessarily recommend projects
+# enable, but are enabled for upstream Pigweed for maximum project
+# compatibility.
+config("extra_strict_warnings") {
+  cflags = [ "-Wshadow" ]
+}
+
 config("cpp11") {
   cflags_cc = [ "-std=c++11" ]
 }