commit | 5f6d2fcd7ec9b1ce1fcc6aef5ab7a83e7dba8f63 | [log] [tgz] |
---|---|---|
author | Leonard Chan <leonardchan@google.com> | Thu Aug 17 18:08:52 2023 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Aug 17 18:08:52 2023 +0000 |
tree | 7d6642814c2c5f0d373bf74285b229453e1f83d9 | |
parent | 8df5682fd2b031f7fcc103470e73171ad15dabb8 [diff] |
pw_tokenizer: Fix instance of -Wconstant-logical-operand Clang would complain about this for C code where the return type of the integer comparison is an int but a logical `||` cannot accept a constant int. This essentially suppresses the warning by wrapping the result in a boolean type. Change-Id: I12fd4f6c9c73af6029c5169a98ad09685c2b57b0 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/166731 Reviewed-by: Wyatt Hepler <hepler@google.com> Commit-Queue: Leonard Chan <leonardchan@google.com> Reviewed-by: Prabhu Karthikeyan Rajasekaran <prabhukr@google.com> Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.