summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2015-03-14 11:04:25 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2015-03-17 10:05:06 -0500
commit217b3f53f635350f6595e97cd2a12d0d4ec6a9a4 (patch)
tree1402bdfdfb1dbb71d70b7b113961589cfad4d949
parentlibmisc/monitor/mon-task.c: Disable deprecated warning for use of notepads (diff)
downloadrtems-217b3f53f635350f6595e97cd2a12d0d4ec6a9a4.tar.bz2
Disable deprecated warning on implementation of deprecated methods
-rw-r--r--cpukit/rtems/src/clockget.c6
-rw-r--r--cpukit/rtems/src/taskgetnote.c5
-rw-r--r--cpukit/rtems/src/tasks.c14
-rw-r--r--cpukit/rtems/src/tasksetnote.c5
-rw-r--r--cpukit/rtems/src/taskvariable_invoke_dtor.c5
-rw-r--r--cpukit/rtems/src/taskvariableadd.c5
-rw-r--r--cpukit/rtems/src/taskvariabledelete.c5
-rw-r--r--cpukit/rtems/src/taskvariableget.c5
8 files changed, 46 insertions, 4 deletions
diff --git a/cpukit/rtems/src/clockget.c b/cpukit/rtems/src/clockget.c
index af14ad9197..860e93021a 100644
--- a/cpukit/rtems/src/clockget.c
+++ b/cpukit/rtems/src/clockget.c
@@ -25,6 +25,12 @@
#include <rtems/score/thread.h>
#include <rtems/score/watchdog.h>
+/*
+ * Ignore deprecated warning when compiling this method. We know
+ * this method is deprecated.
+ */
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+
rtems_status_code rtems_clock_get(
rtems_clock_get_options option,
void *time_buffer
diff --git a/cpukit/rtems/src/taskgetnote.c b/cpukit/rtems/src/taskgetnote.c
index b748b8da54..c097d9cfd7 100644
--- a/cpukit/rtems/src/taskgetnote.c
+++ b/cpukit/rtems/src/taskgetnote.c
@@ -22,6 +22,11 @@
#include <rtems/score/threadimpl.h>
#include <rtems/config.h>
+/*
+ * We know this is deprecated and don't want a warning on every BSP built.
+ */
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+
rtems_status_code rtems_task_get_note(
rtems_id id,
uint32_t notepad,
diff --git a/cpukit/rtems/src/tasks.c b/cpukit/rtems/src/tasks.c
index 237a313421..5ed891522e 100644
--- a/cpukit/rtems/src/tasks.c
+++ b/cpukit/rtems/src/tasks.c
@@ -60,10 +60,16 @@ static bool _RTEMS_tasks_Create_extension(
created->task_variables = NULL;
#endif
+ /*
+ * We know this is deprecated and don't want a warning on every BSP built.
+ */
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
if ( rtems_configuration_get_notepads_enabled() ) {
for (i=0; i < RTEMS_NUMBER_NOTEPADS; i++)
api->Notepads[i] = 0;
}
+ #pragma GCC diagnostic pop
return true;
}
@@ -107,9 +113,14 @@ static void _RTEMS_tasks_Terminate_extension(
/*
* Free per task variable memory
*
- * Per Task Variables are only enabled in uniprocessor configurations
+ * Per Task Variables are only enabled in uniprocessor configurations.
*/
#if !defined(RTEMS_SMP)
+ /*
+ * We know this is deprecated and don't want a warning on every BSP built.
+ */
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
do {
rtems_task_variable_t *tvp, *next;
@@ -121,6 +132,7 @@ static void _RTEMS_tasks_Terminate_extension(
tvp = next;
}
} while (0);
+ #pragma GCC diagnostic pop
#endif
/*
diff --git a/cpukit/rtems/src/tasksetnote.c b/cpukit/rtems/src/tasksetnote.c
index 36fc065f59..42cd4e718d 100644
--- a/cpukit/rtems/src/tasksetnote.c
+++ b/cpukit/rtems/src/tasksetnote.c
@@ -22,6 +22,11 @@
#include <rtems/score/threadimpl.h>
#include <rtems/config.h>
+/*
+ * We know this is deprecated and don't want a warning on every BSP built.
+ */
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+
rtems_status_code rtems_task_set_note(
rtems_id id,
uint32_t notepad,
diff --git a/cpukit/rtems/src/taskvariable_invoke_dtor.c b/cpukit/rtems/src/taskvariable_invoke_dtor.c
index 062772369f..b9213f2bd6 100644
--- a/cpukit/rtems/src/taskvariable_invoke_dtor.c
+++ b/cpukit/rtems/src/taskvariable_invoke_dtor.c
@@ -23,6 +23,11 @@
#include <rtems/score/threadimpl.h>
#include <rtems/score/wkspace.h>
+/*
+ * We know this is deprecated and don't want a warning on every BSP built.
+ */
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+
void _RTEMS_Tasks_Invoke_task_variable_dtor(
Thread_Control *the_thread,
rtems_task_variable_t *tvp
diff --git a/cpukit/rtems/src/taskvariableadd.c b/cpukit/rtems/src/taskvariableadd.c
index c79195e94c..0fea945fba 100644
--- a/cpukit/rtems/src/taskvariableadd.c
+++ b/cpukit/rtems/src/taskvariableadd.c
@@ -24,6 +24,11 @@
#include <rtems/score/wkspace.h>
#include <rtems/config.h>
+/*
+ * We know this is deprecated and don't want a warning on every BSP built.
+ */
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+
rtems_status_code rtems_task_variable_add(
rtems_id tid,
void **ptr,
diff --git a/cpukit/rtems/src/taskvariabledelete.c b/cpukit/rtems/src/taskvariabledelete.c
index f5362f94d4..3f7f84e103 100644
--- a/cpukit/rtems/src/taskvariabledelete.c
+++ b/cpukit/rtems/src/taskvariabledelete.c
@@ -24,6 +24,11 @@
#include <rtems/score/wkspace.h>
#include <rtems/config.h>
+/*
+ * We know this is deprecated and don't want a warning on every BSP built.
+ */
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+
rtems_status_code rtems_task_variable_delete(
rtems_id tid,
void **ptr
diff --git a/cpukit/rtems/src/taskvariableget.c b/cpukit/rtems/src/taskvariableget.c
index ba49b4d88e..3b9cd25a86 100644
--- a/cpukit/rtems/src/taskvariableget.c
+++ b/cpukit/rtems/src/taskvariableget.c
@@ -25,10 +25,9 @@
#include <rtems/config.h>
/*
- * rtems_task_variable_get
- *
- * This directive gets the value of a task variable.
+ * We know this is deprecated and don't want a warning on every BSP built.
*/
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
rtems_status_code rtems_task_variable_get(
rtems_id tid,