diff options
Diffstat (limited to 'testsuites/psxtests/psxconfig01')
-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 |