Skip to content

Commit dad5b9d

Browse files
authored
Improve: Use USEARCH_DEFINED_CLANG macro (#524)
1 parent 9cda215 commit dad5b9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/usearch/index_plugins.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,7 @@ struct casts_punned_t {
12761276
* > warning: loop not vectorized: the optimizer was unable to perform the requested transformation;
12771277
* > the transformation might be disabled or specified as part of an unsupported transformation ordering
12781278
*/
1279-
#if defined(__clang__)
1279+
#if defined(USEARCH_DEFINED_CLANG)
12801280
#pragma clang diagnostic push
12811281
#pragma clang diagnostic ignored "-Wpass-failed"
12821282
#endif
@@ -1990,7 +1990,7 @@ class metric_punned_t {
19901990
};
19911991

19921992
/* Allow complaining about vectorization after this point. */
1993-
#if defined(__clang__)
1993+
#if defined(USEARCH_DEFINED_CLANG)
19941994
#pragma clang diagnostic pop
19951995
#endif
19961996

0 commit comments

Comments
 (0)