From 4767037bcf68a13c9eed7962dca1dd615613cb0d Mon Sep 17 00:00:00 2001 From: szubersk Date: Wed, 7 Dec 2022 18:30:11 +1000 Subject: [PATCH] vdev_raidz_math_aarch64_neonx2.c: suppress diagnostic only for GCC Signed-off-by: szubersk --- module/zfs/vdev_raidz_math_aarch64_neonx2.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/module/zfs/vdev_raidz_math_aarch64_neonx2.c b/module/zfs/vdev_raidz_math_aarch64_neonx2.c index e072f51cd6..c024aafa28 100644 --- a/module/zfs/vdev_raidz_math_aarch64_neonx2.c +++ b/module/zfs/vdev_raidz_math_aarch64_neonx2.c @@ -210,9 +210,13 @@ DEFINE_GEN_METHODS(aarch64_neonx2); * If compiled with -O0, gcc doesn't do any stack frame coalescing * and -Wframe-larger-than=1024 is triggered in debug mode. */ +#if defined(__GNUC__) && !defined(__clang__) #pragma GCC diagnostic ignored "-Wframe-larger-than=" +#endif DEFINE_REC_METHODS(aarch64_neonx2); +#if defined(__GNUC__) && !defined(__clang__) #pragma GCC diagnostic pop +#endif static boolean_t raidz_will_aarch64_neonx2_work(void)