feat winpr: add WINPR_UNUSED macro
authorBernhard Miklautz <bernhard.miklautz@thincast.com>
Mon, 11 Dec 2017 14:15:02 +0000 (15:15 +0100)
committerBernhard Miklautz <bernhard.miklautz@thincast.com>
Wed, 13 Dec 2017 16:04:06 +0000 (17:04 +0100)
WINPR_UNUSED can be used to mark intentionally unused function parameters.

winpr/include/winpr/winpr.h

index cafd692..9961e98 100644 (file)
@@ -71,4 +71,6 @@ WINPR_API const char* winpr_get_build_date(void);
 WINPR_API const char* winpr_get_build_revision(void);
 WINPR_API const char* winpr_get_build_config(void);
 
+#define WINPR_UNUSED(x) (void)(x)
+
 #endif /* WINPR_H */