mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 22:41:10 +01:00
Casting hb_blob_get_data()'s const char* to a struct pointer trips clang's -Wcast-align (1-byte to 2-byte short). In practice the blob's underlying buffer is malloc'd and so suitably aligned for any standard type; suppress the warning around the cast with the same #pragma GCC diagnostic ignored "-Wcast-align" pattern used elsewhere in the codebase (hb-bit-set.hh, hb-machinery.hh). Assisted-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>