diff --git a/test/fuzzing/hb-set-fuzzer.cc b/test/fuzzing/hb-set-fuzzer.cc index d5e5d0e6f..acfe074d6 100644 --- a/test/fuzzing/hb-set-fuzzer.cc +++ b/test/fuzzing/hb-set-fuzzer.cc @@ -35,7 +35,10 @@ extern "C" int LLVMFuzzerTestOneInput (const uint8_t *data, size_t size) if (size < sizeof (instructions_t)) return 0; +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" const instructions_t &instructions = reinterpret_cast (data); +#pragma GCC diagnostic pop data += sizeof (instructions_t); size -= sizeof (instructions_t);