mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 01:37:56 +08:00
basdefs.h: Add RTEMS_PURE
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user