[XDK] Remove UNREFERENCE_LOCAL_VARIABLE macro

Change UNREFERENCED_PARAMETER to (VOID)P to support const parameters
This commit is contained in:
Victor Perevertkin 2021-01-19 00:15:02 +03:00
parent af0f8581ad
commit 46ca069e42
No known key found for this signature in database
GPG key ID: C750B7222E9C7830
7 changed files with 10 additions and 20 deletions

View file

@ -314,8 +314,7 @@
#endif /* DEPRECATE_DDK_FUNCTIONS */
/* Use to silence unused variable warnings when it is intentional */
#define UNREFERENCED_PARAMETER(P) {(P)=(P);}
#define UNREFERENCED_LOCAL_VARIABLE(L) ((void)(L))
#define UNREFERENCED_PARAMETER(P) ((void)(P))
#define DBG_UNREFERENCED_PARAMETER(P) {(P)=(P);}
#define DBG_UNREFERENCED_LOCAL_VARIABLE(L) ((void)(L))