Add DPL_UNUSED_PARAM macro
authorJihoon Chung <jihoon.chung@samsung.com>
Thu, 19 Sep 2013 09:12:42 +0000 (11:12 +0200)
committerJihoon Chung <jihoon.chung@samsung.com>
Thu, 19 Sep 2013 13:20:49 +0000 (15:20 +0200)
[Issue]    LINUXWRT-901
[Problem]  Build warning.
[Cause]    Caused by unused parameter.
[Solution] Add macro casted to void.

Change-Id: Ib9f55567a3c3876a5ab94c4230b75eb54b60942f

modules/core/include/dpl/unused.h

index 2cbf133..8f1a17f 100644 (file)
@@ -24,5 +24,6 @@
 #define DPL_UNUSED_H
 
 #define DPL_UNUSED __attribute__((unused))
+#define DPL_UNUSED_PARAM(variable) (void)variable
 
 #endif // DPL_UNUSED_H