From 39d6c3bd26f0c6143a34ecad57890244d7a7a497 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 17 Jul 2025 17:02:55 -0500 Subject: [PATCH] testsuites/sptests/spconfig01/init.c: Eliminate hard-coded warnings This test had two #warnings which were always in the build log. Added a comment block and deleted the #warning directives. --- testsuites/sptests/spconfig01/init.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/testsuites/sptests/spconfig01/init.c b/testsuites/sptests/spconfig01/init.c index 90157028a9..0ff5fef817 100644 --- a/testsuites/sptests/spconfig01/init.c +++ b/testsuites/sptests/spconfig01/init.c @@ -113,13 +113,17 @@ static void Init(rtems_task_argument arg) rtems_test_exit(0); } +/* + * Override interrupt stack size and prerequisite driver settings from + * the BSP. Historically, these overrides included a #warning but we + * want to eliminate all warnings from building RTEMS including BSPs + * and tests. + */ #ifdef BSP_INTERRUPT_STACK_SIZE -#warning "BSP_INTERRUPT_STACK_SIZE will be #undef for this test" #undef BSP_INTERRUPT_STACK_SIZE #endif #ifdef CONFIGURE_BSP_PREREQUISITE_DRIVERS -#warning "CONFIGURE_BSP_PREREQUISITE_DRIVERS will be #undef for this test" #undef CONFIGURE_BSP_PREREQUISITE_DRIVERS #endif