From 5adde3ae056f3eccde28ccc3422c191e9d278528 Mon Sep 17 00:00:00 2001 From: Robin Kastberg Date: Fri, 29 Nov 2024 15:52:26 +0000 Subject: [PATCH] tests: arm: remove GNUC ifdef It is better to get compile error rather than #error Signed-off-by: Robin Kastberg --- tests/arch/arm/arm_thread_swap/src/arm_syscalls.c | 4 ---- tests/arch/arm/arm_thread_swap/src/arm_thread_arch.c | 4 ---- 2 files changed, 8 deletions(-) diff --git a/tests/arch/arm/arm_thread_swap/src/arm_syscalls.c b/tests/arch/arm/arm_thread_swap/src/arm_syscalls.c index e1573bd1e39a69..075b36126a1558 100644 --- a/tests/arch/arm/arm_thread_swap/src/arm_syscalls.c +++ b/tests/arch/arm/arm_thread_swap/src/arm_syscalls.c @@ -12,10 +12,6 @@ #include #include -#if !defined(__GNUC__) -#error __FILE__ goes only with Cortex-M GCC -#endif - #if !defined(CONFIG_ARMV6_M_ARMV8_M_BASELINE) && \ !defined(CONFIG_ARMV7_M_ARMV8_M_MAINLINE) #error "Unsupported architecture" diff --git a/tests/arch/arm/arm_thread_swap/src/arm_thread_arch.c b/tests/arch/arm/arm_thread_swap/src/arm_thread_arch.c index f299ce4c4a0d5d..fc179dd16c79b2 100644 --- a/tests/arch/arm/arm_thread_swap/src/arm_thread_arch.c +++ b/tests/arch/arm/arm_thread_swap/src/arm_thread_arch.c @@ -12,10 +12,6 @@ #include #include -#if !defined(__GNUC__) -#error __FILE__ goes only with Cortex-M GCC -#endif - #if !defined(CONFIG_ARMV6_M_ARMV8_M_BASELINE) && \ !defined(CONFIG_ARMV7_M_ARMV8_M_MAINLINE) #error "Unsupported architecture"