File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -303,15 +303,16 @@ typedef struct w64wrapper {
303303 #ifndef WARN_UNUSED_RESULT
304304 #if defined(WOLFSSL_LINUXKM) && defined(__must_check)
305305 #define WARN_UNUSED_RESULT __must_check
306- #elif defined(__GNUC__) && (__GNUC__ >= 4)
306+ #elif (defined(__GNUC__) && (__GNUC__ >= 4)) || \
307+ (defined (__IAR_SYSTEMS_ICC__) && (__VER__ >= 9040001 ))
307308 #define WARN_UNUSED_RESULT __attribute__ ((warn_unused_result))
308309 #else
309310 #define WARN_UNUSED_RESULT
310311 #endif
311312 #endif /* WARN_UNUSED_RESULT */
312313
313314 #ifndef WC_MAYBE_UNUSED
314- #if (defined(__GNUC__) && (__GNUC__ >= 4)) || defined(__clang__)
315+ #if (defined(__GNUC__) && (__GNUC__ >= 4)) || defined(__clang__) || defined(__IAR_SYSTEMS_ICC__)
315316 #define WC_MAYBE_UNUSED __attribute__ ((unused))
316317 #else
317318 #define WC_MAYBE_UNUSED
You can’t perform that action at this time.
0 commit comments