Add 'packed' to description of SK_BEGIN_REQUIRE_DENSE.
Spent 10 minutes searching for this macro because I expected it to have "pack" in the name, like __attribute__((packed)) or #pragma pack. Adding a little lifeline for future me. Change-Id: I8c4f8cbd4febdea6bcd5698d267a2673246295e9 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/550184 Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Commit-Queue: John Stiles <johnstiles@google.com>
This commit is contained in:
parent
008d60e58c
commit
9644e7d675
@ -30,7 +30,7 @@
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Can be used to bracket data types that must be dense, e.g. hash keys.
|
||||
// Can be used to bracket data types that must be dense/packed, e.g. hash keys.
|
||||
#if defined(__clang__) // This should work on GCC too, but GCC diagnostic pop didn't seem to work!
|
||||
#define SK_BEGIN_REQUIRE_DENSE _Pragma("GCC diagnostic push") \
|
||||
_Pragma("GCC diagnostic error \"-Wpadded\"")
|
||||
|
Loading…
Reference in New Issue
Block a user