Index: build/config/clang/BUILD.gn |
diff --git a/build/config/clang/BUILD.gn b/build/config/clang/BUILD.gn |
index a0392d200c341af406a11ab85dfc9fa22c44b012..f10fde79e65f5659ffb530113a015e04c3aee4d1 100644 |
--- a/build/config/clang/BUILD.gn |
+++ b/build/config/clang/BUILD.gn |
@@ -31,3 +31,14 @@ config("find_bad_constructs") { |
] |
} |
} |
+ |
+# Enables some extra Clang-specific warnings. Some third-party code won't |
+# compile with these so may want to remove this config. |
+config("extra_warnings") { |
+ cflags = [ |
+ "-Wheader-hygiene" |
+ |
+ # Warns when a const char[] is converted to bool. |
+ "-Wstring-conversion", |
+ ] |
+} |