Skip to content

Commit b270499

Browse files
authored
Suppress bad clang warnings (#2427)
* Suppress bad clang warnings * #if defined(__clang__)
1 parent 6fbd536 commit b270499

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

include/glaze/core/reflect.hpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,14 @@ namespace glz
265265

266266
static constexpr auto values = [] {
267267
return [&]<size_t... I>(std::index_sequence<I...>) { //
268+
#if defined(__clang__)
269+
#pragma clang diagnostic push
270+
#pragma clang diagnostic ignored "-Wmissing-braces"
271+
#endif
268272
return tuple{get<value_indices[I]>(meta_v<T>)...}; //
273+
#if defined(__clang__)
274+
#pragma clang diagnostic pop
275+
#endif
269276
}(std::make_index_sequence<value_indices.size()>{}); //
270277
}();
271278

0 commit comments

Comments
 (0)