--- src/htsselftest.c 2026-08-09 04:13:49.000000000 +0800 +++ src/htsselftest.c 2026-08-11 16:14:38.000000000 +0800 @@ -530,10 +530,6 @@ /* strcpybuff into a pointer destination: routes through the unchecked strcpybuff_ptr_ fallback (the path the overflow warning flags). The warning is intentional here; we only verify the fallback still copies correctly. */ -#if defined(__GNUC__) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wattribute-warning" -#endif { char storage[8]; char *const p = storage; @@ -542,9 +538,6 @@ if (strcmp(p, "ptr") != 0) return 1; } -#if defined(__GNUC__) -#pragma GCC diagnostic pop -#endif /* htsbuff: bounded builder over a fixed array (append, truncating append, reset, and length tracking) */ --- src/coucal/murmurhash3.h 2026-08-09 04:13:49.000000000 +0800 +++ src/coucal/murmurhash3.h 2026-08-11 16:23:47.000000000 +0800 @@ -99,10 +99,6 @@ /* deliberate fall-through; widen each byte to uint32_t so a high byte shifted left 24 can't overflow signed int (UBSan) */ -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wimplicit-fallthrough" -#endif switch(len & 15) { case 15: k4 ^= (uint32_t)tail[14] << 16; @@ -128,9 +124,6 @@ case 1: k1 ^= (uint32_t)tail[ 0] << 0; k1 *= c1; k1 = ROTL32(k1,15); k1 *= c2; h1 ^= k1; }; -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic pop -#endif h1 ^= (uint32_t) len; h2 ^= (uint32_t) len;