diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-09-18 13:53:27 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-09-18 13:53:27 +0100 |
commit | 972c8c0ab6ef228401d30008cb3327d7764d3e62 (patch) | |
tree | ca29d26abf5189fa1a0d3d38eb86f9ad3962a23c /apps | |
parent | bab8a415328537c8398f80395a301079169cf356 (diff) | |
download | rockbox-972c8c0ab6ef228401d30008cb3327d7764d3e62.tar.gz rockbox-972c8c0ab6ef228401d30008cb3327d7764d3e62.zip |
Suppress bogus GCC 12 -Waddress warnings for SKINOFFSETTOPTR
This appears to be a bug in GCC 12 due to more aggressive -Waddress
warnings. According to the GCC documentation, the warning should be
suppressed because the "problem" code is coming from a macro, but it
doesn't happen for cases like "if(!SKINOFFSETTOPTR(...))" where the
macro is negated.
Assigning the result of SKINOFFSETTOPTR() to a temporary and checking
that suppresses the warning.
Change-Id: Ia37a1e06a454d29032bb8128a2f059b149ea2b83
Diffstat (limited to 'apps')
0 files changed, 0 insertions, 0 deletions