commit | e89e39267e07ab5a07ad1c801f471946f3792379 | [log] [tgz] |
---|---|---|
author | Dennis Kormalev <denk@google.com> | Tue Jun 21 14:18:28 2022 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jun 21 17:26:14 2022 +0000 |
tree | d29fdaf4af52b98bebc07d4259cb6572a9241a4d | |
parent | c7b556c471a4a76bda1b1f073392598dae043982 [diff] |
pw_bloat: Don't use compound assignment on volatile variables Standard doesn't specify behavior of the compound assignment on volatile variables - it can be either read and write or a single instruction. Starting with C++20 compilers generate a warning for such cases. Change-Id: I8679b0162a9b4abbae508e4a7b108b4b5625a390 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/98902 Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com> Pigweed-Auto-Submit: Dennis Kormalev <denk@google.com> Reviewed-by: Armando Montanez <amontanez@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/.