commit | b8005bb2078c2fe2b4af0577edbfa952c43b1851 | [log] [tgz] |
---|---|---|
author | Kaylee Lubick <kjlubick@google.com> | Wed Nov 27 11:55:33 2024 -0500 |
committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | Wed Nov 27 17:49:46 2024 +0000 |
tree | fb7abc9a4f918e101e75967f56dc5e538be8d660 | |
parent | 8bece5de86e14cb1b51d5649e65514aa9c6d6374 [diff] |
Make SK_NO_SANITIZE more compatible with GCC Folks using old versions of GCC noted SK_NO_SANITIZE didn't work on old GCC versions. This was also noted in http://review.skia.org/668216 but the fix there is a bit clunky. Looking all uses of that macro, we can just add guards to it depending on what attributes are available. For reference [1] is for a newer version that supports no_sanitize() like clang does. [1] https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Common-Function-Attributes.html Change-Id: I860b7dd38426b8b169c04b86e1be2554f7b19289 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/924397 Commit-Queue: Kaylee Lubick <kjlubick@google.com> Reviewed-by: Ben Wagner <bungeman@google.com>