Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information