File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -88,9 +88,11 @@ namespace classdesc
88
88
89
89
template <class T >
90
90
explicit json_pack_t (const T& x, typename enable_if<
91
+ And<
91
92
And<
92
93
Not<is_base_of<json5_parser::mValue ,T> >,
93
- Not<is_base_of<json5_parser::mArray ,T> >,
94
+ Not<is_base_of<json5_parser::mArray ,T> >
95
+ >,
94
96
Not<is_base_of<json5_parser::mObject ,T> >
95
97
>, dummy<1 > >::T* d=0 );
96
98
@@ -173,9 +175,11 @@ namespace classdesc
173
175
174
176
template <class T >
175
177
json_pack_t::json_pack_t (const T& x, typename enable_if<
178
+ And<
176
179
And<
177
180
Not<is_base_of<json5_parser::mValue ,T> >,
178
- Not<is_base_of<json5_parser::mArray ,T> >,
181
+ Not<is_base_of<json5_parser::mArray ,T> >
182
+ >,
179
183
Not<is_base_of<json5_parser::mObject ,T> >
180
184
>, dummy<1 > >::T*):
181
185
json5_parser::mValue (json5_parser::mObject ()),
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ namespace classdesc
71
71
#pragma GCC diagnostic push
72
72
// gcc is not clever enough to delve into xdr to know this is not uninitialised
73
73
#pragma GCC diagnostic ignored "-Wuninitialized"
74
+ #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
74
75
#endif
75
76
76
77
#ifdef XDR_PACK
You can’t perform that action at this time.
0 commit comments