Skip to content

Commit

Permalink
Merge pull request #544 from FStarLang/clang-cl
Browse files Browse the repository at this point in the history
fix clang-cl warnings
  • Loading branch information
msprotz authored Feb 26, 2025
2 parents 33f346e + e79ddfe commit c03b535
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/krml/internal/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,26 +76,26 @@
#endif

#ifndef KRML_MAYBE_UNUSED
# if defined(__GNUC__)
# if defined(__GNUC__) || defined(__clang__)
# define KRML_MAYBE_UNUSED __attribute__((unused))
# else
# define KRML_MAYBE_UNUSED
# endif
#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)
# endif
#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
Expand Down

0 comments on commit c03b535

Please sign in to comment.