diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2015-03-14 10:52:24 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2015-03-17 10:05:07 -0500 |
commit | e334edd1715abe7a82fea118ef1efc57806e1fe9 (patch) | |
tree | c2eb3ccd14d8dd88d16576ab46a57c7b38d45feb /testsuites/psxtests | |
parent | Disable deprecated warning on implementation of deprecated methods (diff) | |
download | rtems-e334edd1715abe7a82fea118ef1efc57806e1fe9.tar.bz2 |
tests misc: Disable deprecated method usage warning when intentional
These tests intentionally use the deprecated method. Eventually
this code in the sections can be deleted.
Diffstat (limited to 'testsuites/psxtests')
-rw-r--r-- | testsuites/psxtests/psxconfig01/init.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/testsuites/psxtests/psxconfig01/init.c b/testsuites/psxtests/psxconfig01/init.c index 61beec3495..ea8cd5dc5a 100644 --- a/testsuites/psxtests/psxconfig01/init.c +++ b/testsuites/psxtests/psxconfig01/init.c @@ -438,10 +438,16 @@ static rtems_task Init(rtems_task_argument argument) #if !defined(RTEMS_SMP) #ifdef CONFIGURE_MAXIMUM_TASK_VARIABLES - for (i = 0; i < CONFIGURE_MAXIMUM_TASK_VARIABLES; ++i) { - sc = rtems_task_variable_add(RTEMS_SELF, &task_var, task_var_dtor); - directive_failed(sc, "rtems_task_variable_add"); - } + /* + * 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" + for (i = 0; i < CONFIGURE_MAXIMUM_TASK_VARIABLES; ++i) { + sc = rtems_task_variable_add(RTEMS_SELF, &task_var, task_var_dtor); + directive_failed(sc, "rtems_task_variable_add"); + } + #pragma GCC diagnostic pop #endif #endif |