Suppress GCC 16 incomplete type warning (#4893)

This commit is contained in:
TheNonConformist 2026-08-30 03:39:36 +05:30 committed by GitHub
parent e589a16ecb
commit 8a84280f26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2651,6 +2651,9 @@ TEST(incomplete_type_test, format) {
EXPECT_EQ(fmt::format("{}", external_instance), "42");
}
#if FMT_GCC_VERSION >= 1600
FMT_PRAGMA_GCC(diagnostic ignored "-Wsfinae-incomplete")
#endif
struct incomplete_type {};
const incomplete_type& external_instance = {};