mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-12 11:20:10 +01:00
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:
@@ -73,7 +73,7 @@
|
|||||||
|
|
||||||
#define MOVE_REF(x, y) \
|
#define MOVE_REF(x, y) \
|
||||||
do { \
|
do { \
|
||||||
typeof (x) *_px = &(x), *_py = &(y); \
|
__typeof__(x) *_px = &(x), *_py = &(y); \
|
||||||
*_px = *_py; \
|
*_px = *_py; \
|
||||||
*_py = NULL; \
|
*_py = NULL; \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|||||||
Reference in New Issue
Block a user