Skip to content

Commit

Permalink
tests: arm: remove GNUC ifdef
Browse files Browse the repository at this point in the history
It is better to get compile error rather than #error

Signed-off-by: Robin Kastberg <[email protected]>
  • Loading branch information
RobinKastberg committed Nov 29, 2024
1 parent c0a0e6a commit 5adde3a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions tests/arch/arm/arm_thread_swap/src/arm_syscalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
#include <offsets_short_arch.h>
#include <ksched.h>

#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"
Expand Down
4 changes: 0 additions & 4 deletions tests/arch/arm/arm_thread_swap/src/arm_thread_arch.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
#include <offsets_short_arch.h>
#include <ksched.h>

#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"
Expand Down

0 comments on commit 5adde3a

Please sign in to comment.