Skip to content

Commit ab9df39

Browse files
committed
fix: build error
1 parent 38cf5cd commit ab9df39

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

3rdparty/include/meojson/reflection/jsonization.hpp

+4
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,10 @@ struct loader
9292
};
9393
} // namespace json::_jsonization_helper
9494

95+
#if defined(__clang__)
9596
#pragma clang diagnostic push
9697
#pragma clang diagnostic ignored "-Wgnu-zero-variadic-macro-arguments"
98+
#endif
9799

98100
namespace json::_private_macro
99101
{
@@ -234,4 +236,6 @@ namespace json::_private_macro
234236

235237
#define MEO_OPT json::_jsonization_helper::next_is_optional_t {},
236238

239+
#if defined(__clang__)
237240
#pragma clang diagnostic pop // -Wgnu-zero-variadic-macro-arguments
241+
#endif

0 commit comments

Comments
 (0)