From e79ddfed171590139ca961907f60756239edeb83 Mon Sep 17 00:00:00 2001 From: Chris Eibl <138194463+chris-eibl@users.noreply.github.com> Date: Tue, 25 Feb 2025 13:26:58 -0800 Subject: [PATCH] fix clang-cl warnings --- include/krml/internal/target.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/krml/internal/target.h b/include/krml/internal/target.h index f385010d..c5922146 100644 --- a/include/krml/internal/target.h +++ b/include/krml/internal/target.h @@ -76,7 +76,7 @@ #endif #ifndef KRML_MAYBE_UNUSED -# if defined(__GNUC__) +# if defined(__GNUC__) || defined(__clang__) # define KRML_MAYBE_UNUSED __attribute__((unused)) # else # define KRML_MAYBE_UNUSED @@ -84,7 +84,7 @@ #endif #ifndef KRML_ATTRIBUTE_TARGET -# if defined(__GNUC__) +# if defined(__GNUC__) || defined(__clang__) # define KRML_ATTRIBUTE_TARGET(x) __attribute__((target(x))) # else # define KRML_ATTRIBUTE_TARGET(x) @@ -92,10 +92,10 @@ #endif #ifndef KRML_NOINLINE -# if defined(_MSC_VER) -# define KRML_NOINLINE __declspec(noinline) -# elif defined (__GNUC__) +# if defined (__GNUC__) || defined (__clang__) # define KRML_NOINLINE __attribute__((noinline,unused)) +# elif defined(_MSC_VER) +# define KRML_NOINLINE __declspec(noinline) # elif defined (__SUNPRO_C) # define KRML_NOINLINE __attribute__((noinline)) # else