aboutsummaryrefslogtreecommitdiff
path: root/pw_string/BUILD.gn
diff options
context:
space:
mode:
authorBen <benlawson@google.com>2023-04-03 21:50:52 +0000
committerCQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-04-03 21:50:52 +0000
commitf031b448622b48e7d039e77759c2446935fbae4f (patch)
tree83bfc77eede9c35f98295a0f9d44671f176009b4 /pw_string/BUILD.gn
parent2b30c2c4b995f2770284f6ad7cbee572a99d9728 (diff)
downloadpigweed-f031b448622b48e7d039e77759c2446935fbae4f.tar.gz
pw_string: Enable -Wconversion
Add -Wconversion flag to pw_string:{builder, format, string} and fix implicit conversion errors. Bug: 259746255 Change-Id: I347f62d69e3d812876960b99bff5fa7121beb772 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/137020 Reviewed-by: Wyatt Hepler <hepler@google.com> Commit-Queue: Ben Lawson <benlawson@google.com> Pigweed-Auto-Submit: Ben Lawson <benlawson@google.com>
Diffstat (limited to 'pw_string/BUILD.gn')
-rw-r--r--pw_string/BUILD.gn9
1 files changed, 9 insertions, 0 deletions
diff --git a/pw_string/BUILD.gn b/pw_string/BUILD.gn
index e0fbf6fd9..9c7c06ac2 100644
--- a/pw_string/BUILD.gn
+++ b/pw_string/BUILD.gn
@@ -66,6 +66,9 @@ pw_source_set("builder") {
dir_pw_span,
dir_pw_status,
]
+
+ # TODO(b/259746255): Remove this when everything compiles with -Wconversion.
+ configs = [ "$dir_pw_build:conversion_warnings" ]
}
pw_source_set("format") {
@@ -78,6 +81,9 @@ pw_source_set("format") {
dir_pw_span,
dir_pw_status,
]
+
+ # TODO(b/259746255): Remove this when everything compiles with -Wconversion.
+ configs = [ "$dir_pw_build:conversion_warnings" ]
}
pw_source_set("string") {
@@ -108,6 +114,9 @@ pw_source_set("to_string") {
dir_pw_status,
]
deps = [ "$dir_pw_third_party/fuchsia:stdcompat" ]
+
+ # TODO(b/259746255): Remove this when everything compiles with -Wconversion.
+ configs = [ "$dir_pw_build:conversion_warnings" ]
}
pw_source_set("util") {