basdefs.h: Add RTEMS_PURE

This commit is contained in:
Sebastian Huber
2015-10-26 09:13:19 +01:00
parent 143696acbd
commit a3ba5b3798
+5 -3
View File
@@ -171,12 +171,14 @@
* variables.
*/
#ifdef __GNUC__
#define RTEMS_COMPILER_PURE_ATTRIBUTE \
__attribute__ ((pure))
#define RTEMS_PURE __attribute__((__pure__))
#else
#define RTEMS_COMPILER_PURE_ATTRIBUTE
#define RTEMS_PURE
#endif
/* Provided for backward compatibility */
#define RTEMS_COMPILER_PURE_ATTRIBUTE RTEMS_PURE
/**
* Instructs the compiler to issue a warning whenever a variable or function
* with this attribute will be used.