From 217b3f53f635350f6595e97cd2a12d0d4ec6a9a4 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sat, 14 Mar 2015 11:04:25 -0500 Subject: Disable deprecated warning on implementation of deprecated methods --- cpukit/rtems/src/tasks.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'cpukit/rtems/src/tasks.c') 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 /* -- cgit v1.2.3