projects
/
platform
/
framework
/
web
/
wrt-commons.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9808ee9
)
Add DPL_UNUSED_PARAM macro
author
Jihoon Chung
<jihoon.chung@samsung.com>
Thu, 19 Sep 2013 09:12:42 +0000
(11:12 +0200)
committer
Jihoon 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
patch
|
blob
|
history
diff --git
a/modules/core/include/dpl/unused.h
b/modules/core/include/dpl/unused.h
index
2cbf133
..
8f1a17f
100644
(file)
--- a/
modules/core/include/dpl/unused.h
+++ b/
modules/core/include/dpl/unused.h
@@
-24,5
+24,6
@@
#define DPL_UNUSED_H
#define DPL_UNUSED __attribute__((unused))
+#define DPL_UNUSED_PARAM(variable) (void)variable
#endif // DPL_UNUSED_H