diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-05-05 14:29:55 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-05-05 14:29:55 +0000 |
commit | c27951f23d0eb350abc43fd6b86c217e3bf44dab (patch) | |
tree | 53ca63643e36c6810d308fa8da93aa6caac4d5a7 /cpukit | |
parent | 2009-05-05 Michael Walle <michael@walle.cc> (diff) | |
download | rtems-c27951f23d0eb350abc43fd6b86c217e3bf44dab.tar.bz2 |
2009-05-05 Sebastian Huber <sebastian.huber@embedded-brains.de>
* score/include/rtems/system.h: Added
RTEMS_COMPILER_DEPRECATED_ATTRIBUTE define.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/score/include/rtems/system.h | 11 |
2 files changed, 16 insertions, 0 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 2b35a5d458..4dcbde6c2a 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,5 +1,10 @@ 2009-05-05 Sebastian Huber <sebastian.huber@embedded-brains.de> + * score/include/rtems/system.h: Added + RTEMS_COMPILER_DEPRECATED_ATTRIBUTE define. + +2009-05-05 Sebastian Huber <sebastian.huber@embedded-brains.de> + * include/rtems/endian.h: Added functions to translate integers to/from byte streams. * libnetworking/lib/ftpfs.c: Added timeout for active data connection diff --git a/cpukit/score/include/rtems/system.h b/cpukit/score/include/rtems/system.h index f65c00cc7f..e807276d21 100644 --- a/cpukit/score/include/rtems/system.h +++ b/cpukit/score/include/rtems/system.h @@ -138,6 +138,17 @@ extern "C" { #define RTEMS_COMPILER_NO_RETURN_ATTRIBUTE #endif +/** + * Instructs the compiler to issue a warning whenever a variable or function + * with this attribute will be used. + */ +#ifdef __GNUC__ + #define RTEMS_COMPILER_DEPRECATED_ATTRIBUTE \ + __attribute__ ((deprecated)) +#else + #define RTEMS_COMPILER_DEPRECATED_ATTRIBUTE +#endif + #ifdef RTEMS_POSIX_API /** The following is used by the POSIX implementation to catch bad paths. */ int POSIX_NOT_IMPLEMENTED( void ); |