Selaa lähdekoodia

avoid Clang analyzer false positive on macos

Olivier Aumage 6 vuotta sitten
vanhempi
commit
b207af446e
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  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