diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2015-03-14 11:04:25 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2015-03-17 10:05:06 -0500 |
commit | 217b3f53f635350f6595e97cd2a12d0d4ec6a9a4 (patch) | |
tree | 1402bdfdfb1dbb71d70b7b113961589cfad4d949 /cpukit/rtems/src/tasks.c | |
parent | libmisc/monitor/mon-task.c: Disable deprecated warning for use of notepads (diff) | |
download | rtems-217b3f53f635350f6595e97cd2a12d0d4ec6a9a4.tar.bz2 |
Disable deprecated warning on implementation of deprecated methods
Diffstat (limited to 'cpukit/rtems/src/tasks.c')
-rw-r--r-- | cpukit/rtems/src/tasks.c | 14 |
1 files changed, 13 insertions, 1 deletions
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 /* |