After the harfbuzz 7.2 update we run into /linuxmuslx86_64/jdk-dev/src/java.desktop/share/native/libharfbuzz/OT/glyf/Glyph.hh:281:8: error: offset '4' outside bounds of constant string [-Werror=array-bounds] 281 | bool get_points (hb_font_t *font, const accelerator_t &glyf_accelerator, | ^~~~~~~~~~ /linuxmuslx86_64/jdk-dev/src/java.desktop/share/native/libharfbuzz/hb-static.cc:45:16: note: '_hb_NullPool' declared here 45 | uint64_t const _hb_NullPool[(HB_NULL_POOL_SIZE + sizeof (uint64_t) - 1) / sizeof (uint64_t)] = {}; | ^~~~~~~~~~~~ /linuxmuslx86_64/jdk-dev/src/java.desktop/share/native/libharfbuzz/OT/glyf/Glyph.hh:281:8: error: offset '4' outside bounds of constant string [-Werror=array-bounds] 281 | bool get_points (hb_font_t *font, const accelerator_t &glyf_accelerator, | ^~~~~~~~~~ /linuxmuslx86_64/jdk-dev/src/java.desktop/share/native/libharfbuzz/hb-static.cc:45:16: note: '_hb_NullPool' declared here 45 | uint64_t const _hb_NullPool[(HB_NULL_POOL_SIZE + sizeof (uint64_t) - 1) / sizeof (uint64_t)] = {};
We use gcc12 on Alpine. Switching off this 'warning as error' fixes the issue. ------------- Commit messages: - JDK-8307604 Changes: https://git.openjdk.org/jdk/pull/13859/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=13859&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8307604 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/13859.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/13859/head:pull/13859 PR: https://git.openjdk.org/jdk/pull/13859