[winpr] mark GNU macros with __extension__

mark GNU and clang definition of macros using statement expressions with
__extension__ to silence warnings. We know the compilers support that
and do not use it with others.
This commit is contained in:
Armin Novak 2024-10-09 10:07:45 +02:00
parent 2d10effd3c
commit 8abf9cbe7c
No known key found for this signature in database
GPG Key ID: 2CF4A2D2D3D72105

View File

@ -146,7 +146,7 @@ WINPR_API const char* winpr_get_build_config(void);
* @since version 3.9.0
*/
#define WINPR_REINTERPRET_CAST(ptr, srcType, dstType) \
({ \
__extension__({ \
union \
{ \
srcType src; \
@ -164,7 +164,7 @@ WINPR_API const char* winpr_get_build_config(void);
* @since version 3.9.0
*/
#define WINPR_CAST_CONST_PTR_AWAY(ptr, dstType) \
({ \
__extension__({ \
union \
{ \
typeof(ptr) src; \
@ -182,7 +182,7 @@ WINPR_API const char* winpr_get_build_config(void);
* @since version 3.9.0
*/
#define WINPR_FUNC_PTR_CAST(ptr, dstType) \
({ \
__extension__({ \
union \
{ \
typeof(ptr) src; \