From 4a735ef046853dab926e076809b2f527e1d1349d Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 26 Jan 2023 15:44:32 -0800 Subject: [PATCH] xmpsdk: Fix dangling pointer warning Signed-off-by: Rosen Penev --- xmpsdk/src/XMPCore_Impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmpsdk/src/XMPCore_Impl.hpp b/xmpsdk/src/XMPCore_Impl.hpp index 7d57de6c..3473c5db 100644 --- a/xmpsdk/src/XMPCore_Impl.hpp +++ b/xmpsdk/src/XMPCore_Impl.hpp @@ -114,7 +114,7 @@ extern WXMP_Result void_wResult; #define WtoXMPDocOps_Ref(docRef) *((const XMPDocOps *)(docRef)) #define WtoXMPDocOps_Ptr(docRef) (((docRef) == 0) ? 0 : (XMPDocOps *)(docRef)) -#define IgnoreParam(p) voidVoidPtr = (void*)&p +#define IgnoreParam(p) (void)p // ================================================================================================= // Version info