Parcourir la source

avoid Clang analyzer false positive on macos

Olivier Aumage il y a 6 ans
Parent
commit
b207af446e
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      include/starpu_util.h

+ 5 - 1
include/starpu_util.h

@@ -142,7 +142,11 @@ extern "C"
 #endif
 
 #ifdef __APPLE_CC__
-#  define _starpu_abort() *(volatile int*)NULL = 0
+#  ifdef __clang_analyzer__
+#    define _starpu_abort() exit(42)
+#  else
+#    define _starpu_abort() *(volatile int*)NULL = 0
+#  endif
 #else
 #  define _starpu_abort() abort()
 #endif