aboutsummaryrefslogtreecommitdiff
path: root/pw_string
diff options
context:
space:
mode:
authorprabhukr <prabhukr@google.com>2023-05-11 21:00:08 +0000
committerCQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-05-11 21:00:08 +0000
commit0f72cf35b40969a8cbdb65d1ef678a9968ffaa3e (patch)
treedb67926620d1437d09a70c73bcb0eb6d027f5ab0 /pw_string
parent74d8d83f4893bd9ab0a5c23767ac7551f202c35f (diff)
downloadpigweed-0f72cf35b40969a8cbdb65d1ef678a9968ffaa3e.tar.gz
pw_build: Disable deprecated warnings
Clang's deprecated warnings are disabled to allow InlineBasicString instantiations with long arrays to continue to work with the latest version of the compiler. Bug: b/280455862 Change-Id: I4ddf243178ca1790e8a07ca16c37d022dfd7600b Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/146471 Reviewed-by: Aaron Green <aarongreen@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com> Pigweed-Auto-Submit: Prabhu Karthikeyan Rajasekaran <prabhukr@google.com>
Diffstat (limited to 'pw_string')
-rw-r--r--pw_string/BUILD.gn10
1 files changed, 9 insertions, 1 deletions
diff --git a/pw_string/BUILD.gn b/pw_string/BUILD.gn
index a2a9bc946..5f36a8bae 100644
--- a/pw_string/BUILD.gn
+++ b/pw_string/BUILD.gn
@@ -31,6 +31,11 @@ config("public_include_path") {
include_dirs = [ "public" ]
}
+# TODO(b/282027225): Enable deprecation warnings after fixing string_test.cc.
+config("clang_disable_deprecation_warnings") {
+ defines = [ "_LIBCPP_DISABLE_DEPRECATION_WARNINGS=1" ]
+}
+
config("enable_decimal_float_expansion_config") {
defines = [ "PW_STRING_ENABLE_DECIMAL_FLOAT_EXPANSION=1" ]
}
@@ -41,7 +46,10 @@ pw_source_set("enable_decimal_float_expansion") {
pw_source_set("config") {
public = [ "public/pw_string/internal/config.h" ]
- public_configs = [ ":public_include_path" ]
+ public_configs = [
+ ":public_include_path",
+ ":clang_disable_deprecation_warnings",
+ ]
public_deps = [ pw_string_CONFIG ]
}