[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:
parent
2d10effd3c
commit
8abf9cbe7c
@ -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; \
|
||||
|
Loading…
x
Reference in New Issue
Block a user