Skip to content

Commit 9487121

Browse files
committed
fix compiler warnings
1 parent fc84a82 commit 9487121

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

cpp/cmake/patches/faiss-1.14-cuvs-26.04.diff

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,15 @@ index d4a2d99fe..3c7e6abfa 100644
1111
#include <cuvs/neighbors/brute_force.hpp>
1212
#include <raft/core/device_mdspan.hpp>
1313
#include <raft/core/logger.hpp>
14+
diff --git a/faiss/impl/platform_macros.h b/faiss/impl/platform_macros.h
15+
--- a/faiss/impl/platform_macros.h
16+
+++ b/faiss/impl/platform_macros.h
17+
@@ -185,7 +185,7 @@
18+
#define FAISS_PRAGMA_IMPRECISE_FUNCTION_END
19+
#endif
20+
#endif
21+
-#elif defined(__GNUC__)
22+
+#elif defined(__GNUC__) && !defined(__NVCC__)
23+
// Unfortunately, GCC does not provide a pragma for detecting it.
24+
// So, we have to stick to GNUC, which is defined by MANY compilers.
25+
// This is why clang/icc needs to be checked first.

0 commit comments

Comments
 (0)