Use ISO C compatible __typeof__.

As used already in the same header abeve and to fix ridiculous warnings
in static analysis.
This commit is contained in:
Milan Broz
2021-02-05 12:40:18 +01:00
parent 0738ba2451
commit 11e7e267f7

View File

@@ -73,7 +73,7 @@
#define MOVE_REF(x, y) \
do { \
typeof (x) *_px = &(x), *_py = &(y); \
__typeof__(x) *_px = &(x), *_py = &(y); \
*_px = *_py; \
*_py = NULL; \
} while (0)