aboutsummaryrefslogtreecommitdiff
path: root/targets
diff options
context:
space:
mode:
authorWyatt Hepler <hepler@google.com>2022-02-16 07:15:07 -0800
committerCQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-02-16 16:55:44 +0000
commitbad6d27519d3a4679f0d4bb93090a6206017ad5f (patch)
treee7af354aa9847d276e9f3bf46d601e9773744bb9 /targets
parentdb965a32ba89c81e10117d3ba86440ef4d888007 (diff)
downloadpigweed-bad6d27519d3a4679f0d4bb93090a6206017ad5f.tar.gz
pw_status: Enforce [[nodiscard]] on pw::Status in upstream Pigweed
- Enable the [[nodiscard]] flag for the pw_strict_* toolchains. - Check unused Status or call IgnoreError() and flag with pwbug/387. Change-Id: Ibef43c09b29a803bc3be17f81e13639d5f908cb2 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/77561 Reviewed-by: Alexei Frolov <frolv@google.com> Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com> Reviewed-by: Keir Mierle <keir@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Diffstat (limited to 'targets')
-rw-r--r--targets/host/target_toolchains.gni1
1 files changed, 1 insertions, 0 deletions
diff --git a/targets/host/target_toolchains.gni b/targets/host/target_toolchains.gni
index f1da1f541..15c08acb4 100644
--- a/targets/host/target_toolchains.gni
+++ b/targets/host/target_toolchains.gni
@@ -294,6 +294,7 @@ pw_target_toolchain_host_list = [
# Additional configuration intended only for upstream Pigweed use.
_pigweed_internal = {
+ pw_status_CONFIG = "$dir_pw_status:check_if_used"
}
# Host toolchains exclusively for upstream Pigweed use. To give upstream Pigweed