Silence a ton of clang warnings
# define SIMDE__FUNCTION_ATTRIBUTES HEDLEY_INLINE SIMDE__ARTIFICIAL static
#endif
+#if HEDLEY_HAS_WARNING("-Wused-but-marked-unused")
+# define SIMDE_DIAGNOSTIC_DISABLE_USED_BUT_MARKED_UNUSED _Pragma("clang diagnostic ignored \"-Wused-but-marked-unused\"")
+#else
+# define SIMDE_DIAGNOSTIC_DISABLE_USED_BUT_MARKED_UNUSED
+#endif
+
#if defined(_MSC_VER)
# define SIMDE__BEGIN_DECLS HEDLEY_DIAGNOSTIC_PUSH __pragma(warning(disable:4996 4204)) HEDLEY_BEGIN_C_DECLS
# define SIMDE__END_DECLS HEDLEY_DIAGNOSTIC_POP HEDLEY_END_C_DECLS
#else
-# define SIMDE__BEGIN_DECLS HEDLEY_BEGIN_C_DECLS
-# define SIMDE__END_DECLS HEDLEY_END_C_DECLS
+# define SIMDE__BEGIN_DECLS \
+ HEDLEY_DIAGNOSTIC_PUSH \
+ SIMDE_DIAGNOSTIC_DISABLE_USED_BUT_MARKED_UNUSED \
+ HEDLEY_BEGIN_C_DECLS
+# define SIMDE__END_DECLS \
+ HEDLEY_END_C_DECLS \
+ HEDLEY_DIAGNOSTIC_POP
#endif
#if HEDLEY_HAS_WARNING("-Wpedantic")
