From 1a91fedb1f5559649af08bdca0c599547c905718 Mon Sep 17 00:00:00 2001 From: belliash Date: Sun, 16 Jun 2019 00:10:27 +0200 Subject: [PATCH] Proper SXUNUSED() macro implementation. --- include/ph7int.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ph7int.h b/include/ph7int.h index 1f37459..6e2c73c 100644 --- a/include/ph7int.h +++ b/include/ph7int.h @@ -143,7 +143,7 @@ typedef sxi32(*ProcRawStrCmp)(const SyString *, const SyString *); #define SX_ADDR(PTR) ((sxptr)PTR) #define SX_ARRAYSIZE(X) (sizeof(X)/sizeof(X[0])) -#define SXUNUSED(P) (P = 0) +#define SXUNUSED(P) ((void)P) #define SX_EMPTY(PTR) (PTR == 0) #define SX_EMPTY_STR(STR) (STR == 0 || STR[0] == 0 ) typedef struct SyMemBackend SyMemBackend;