mirror of
https://github.com/fmtlib/fmt.git
synced 2026-09-13 14:22:26 +08:00
Suppress GCC 16 incomplete type warning (#4893)
This commit is contained in:
parent
e589a16ecb
commit
8a84280f26
@ -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 = {};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user