Add DPL_DEPRECATED macro
[Issue#] N/A
[Problem] WRT doesn't have any MACRO to show deprecated build warning.
[Cause] N/A
[Solution] Add macro for showing build warning. (DPL_DEPRECATED, DPL_DEPRECATED_WITH_MESSAGE(msg))
- Macro uses gcc attribute
__attribute__((deprecated)), __attribute__((deprecated("msg")))
The deprecated attribute results in a warning if the function is used anywhere in the source file.
This is useful when identifying functions that are expected to be removed in a future version of a program.
The warning also includes the location of the declaration of the deprecated function,
to enable users to easily find further information about why the function is deprecated,
or what they should do instead.
The deprecated attribute can also be used for variables and types. (Variable Attributes, Type Attributes)
http://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Function-Attributes.html#Function%20Attributes
[SCMRequest] N/A
Change-Id: I2d79d8cacff3593c2bba8ea048d9a4025c6f4994