commit | d9e14eb3cfffbe88a92841242bdcb00120a23979 | [log] [tgz] |
---|---|---|
author | Eli Lipsitz <elipsitz@google.com> | Wed May 08 19:54:49 2024 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed May 08 19:54:49 2024 +0000 |
tree | 4cf4e8dcc2e09ed21ff3bb1be19162683713336f | |
parent | bfccb2d8fb8e32fd69e056a7efc5d7968522308e [diff] |
pw_i2c_mcuxpresso: Fix Clang compilation This commit fixes compilation on Clang, by moving the PW_GUARDED_BY macro to be in the correct location with respect to a field with a default value. When compiling with Clang, the PW_GUARDED_BY macro is not a no-op, so the placement of the attribute it expands to is important. Tested: Compiles with Clang Change-Id: I25e7d792af942b3073d183aef743f7444a0d14b2 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/209191 Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Ted Pudlik <tpudlik@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com> Pigweed-Auto-Submit: Eli Lipsitz <elipsitz@google.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/.