Skip to content

Commit

Permalink
fix clang-cl warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-eibl authored and msprotz committed Feb 25, 2025
1 parent 33f346e commit e79ddfe
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 e79ddfe

Please sign in to comment.