From ed2ef569687432733ef05712aa52fff8758460a7 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 2 Sep 2025 15:45:43 +0200 Subject: [PATCH] simplify --- lib/curl_setup.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/curl_setup.h b/lib/curl_setup.h index eee7de93c9..e0fbce92e4 100644 --- a/lib/curl_setup.h +++ b/lib/curl_setup.h @@ -786,12 +786,8 @@ #if defined(__GNUC__) && ((__GNUC__ >= 3) || \ ((__GNUC__ == 2) && defined(__GNUC_MINOR__) && (__GNUC_MINOR__ >= 7))) # define WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#elif defined(__IAR_SYSTEMS_ICC__) -# if (__VER__ >= 9040001) -# define WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -# else -# define WARN_UNUSED_RESULT -# endif +#elif defined(__IAR_SYSTEMS_ICC__) && (__VER__ >= 9040001) +# define WARN_UNUSED_RESULT __attribute__((warn_unused_result)) #else # define WARN_UNUSED_RESULT #endif