From 3ac681191ec76f7c0a876f2f2cc33adad9a99cc0 Mon Sep 17 00:00:00 2001 From: Gedare Bloom Date: Fri, 6 Mar 2015 12:41:49 -0500 Subject: cpukit: deprecate notepads Deprecate Classic API Notepads. Mark task_set/get_note() with the deprecated attribute, and also mark the notepads field. Replace disable with enable option for notepads in confdefs.h, and make notepads disabled by default. The previous option CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS is now unused and will emit a compile-time warning. A new option CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS is available to turn on notepads, but it also will emit a compile-time warning to indicate that notepads are deprecated. Closes #2265 --- c/src/librtems++/include/rtems++/rtemsTask.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'c/src/librtems++') diff --git a/c/src/librtems++/include/rtems++/rtemsTask.h b/c/src/librtems++/include/rtems++/rtemsTask.h index 6d19b460f4..6a500b0db0 100644 --- a/c/src/librtems++/include/rtems++/rtemsTask.h +++ b/c/src/librtems++/include/rtems++/rtemsTask.h @@ -127,9 +127,9 @@ public: // notepad control const rtems_status_code get_note(const uint32_t notepad, - uint32_t& note); + uint32_t& note) RTEMS_COMPILER_DEPRECATED_ATTRIBUTE; const rtems_status_code set_note(const uint32_t notepad, - const uint32_t note); + const uint32_t note) RTEMS_COMPILER_DEPRECATED_ATTRIBUTE; // object id, and name const rtems_id id_is() const { return id; } -- cgit v1.2.3