File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -165,17 +165,28 @@ check by comparing the reference count field to the immortality reference count.
165
165
*/
166
166
struct _object {
167
167
_PyObject_HEAD_EXTRA
168
+
168
169
#if (defined(__GNUC__ ) || defined(__clang__ )) \
169
170
&& !(defined __STDC_VERSION__ && __STDC_VERSION__ >= 201112L )
170
171
// On C99 and older, anonymous union is a GCC and clang extension
171
172
__extension__
173
+ #endif
174
+ #ifdef _MSC_VER
175
+ // Ignore MSC warning C4201: "nonstandard extension used:
176
+ // nameless struct/union"
177
+ __pragma (warning (push ))
178
+ __pragma (warning (disable : 4201 ))
172
179
#endif
173
180
union {
174
181
Py_ssize_t ob_refcnt ;
175
182
#if SIZEOF_VOID_P > 4
176
183
PY_UINT32_T ob_refcnt_split [2 ];
177
184
#endif
178
185
};
186
+ #ifdef _MSC_VER
187
+ __pragma (warning (pop ))
188
+ #endif
189
+
179
190
PyTypeObject * ob_type ;
180
191
};
181
192
You can’t perform that action at this time.
0 commit comments