Move DPL_UNUSED & DPL_UNUSED_PARAM unused.h to availability.h #1
authorJihoon Chung <jihoon.chung@samsaung.com>
Thu, 10 Oct 2013 12:14:04 +0000 (21:14 +0900)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Mon, 14 Oct 2013 00:29:52 +0000 (00:29 +0000)
 * Task seperates two part
  1. Add DPL_UNUSED & DPL_UNUSED_PARAM to availability.h
  2. Remove unused.h after replace usage

[Issue#]       LINUXWRT-1016
[Problem]      Common header to support various macro for availability property is added
[Cause]        N/A
[Solution]     First part commit
               - Add DPL_UNUSED and DPL_UNUSED_PARAM to availability.h
               - All macro usage will replace from unused.h to availability.h
[Verification] Build all wrt packages
[SCMRequest]   N/A

Change-Id: I329e317e9733aaf52ab9b16473ea88ede4fdc59d

modules/core/include/dpl/availability.h
modules/core/include/dpl/unused.h

index f20c5df..0813892 100644 (file)
@@ -24,4 +24,7 @@
 #define DPL_DEPRECATED __attribute__((deprecated))
 #define DPL_DEPRECATED_WITH_MESSAGE(msg) __attribute__((deprecated(msg)))
 
+#define DPL_UNUSED __attribute__((unused))
+#define DPL_UNUSED_PARAM(variable) (void)variable
+
 #endif // DPL_AVAILABILITY_H
index 8f1a17f..5fddaac 100644 (file)
@@ -23,6 +23,7 @@
 #ifndef DPL_UNUSED_H
 #define DPL_UNUSED_H
 
+#warning using deprecated macros. uses availability.h
 #define DPL_UNUSED __attribute__((unused))
 #define DPL_UNUSED_PARAM(variable) (void)variable