From f031b448622b48e7d039e77759c2446935fbae4f Mon Sep 17 00:00:00 2001 From: Ben Date: Mon, 3 Apr 2023 21:50:52 +0000 Subject: 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 Commit-Queue: Ben Lawson Pigweed-Auto-Submit: Ben Lawson --- pw_string/BUILD.gn | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'pw_string/BUILD.gn') 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") { -- cgit v1.2.3