Workaround 'value of abort unknown' cppcheck info message
authorIvan Maidanski <ivmai@mail.ru>
Mon, 24 Apr 2017 17:47:35 +0000 (20:47 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 24 Apr 2017 17:47:35 +0000 (20:47 +0300)
(fix commit 9f4a38e)

* src/atomic_ops_malloc.c [_WIN32_WCE || __MINGW32CE__] (abort): Check
defined(AO_HAVE_abort) instead of defined(abort).
* tests/run_parallel.h [_WIN32_WCE || __MINGW32CE__] (abort): Likewise.
* tests/test_stack.c [_WIN32_WCE || __MINGW32CE__] (abort): Likewise.

src/atomic_ops_malloc.c
tests/run_parallel.h
tests/test_stack.c

index 74c96c0..4748e6a 100644 (file)
@@ -27,7 +27,7 @@
 # include <pthread.h>
 #endif
 
-#if (defined(_WIN32_WCE) || defined(__MINGW32CE__)) && !defined(abort)
+#if (defined(_WIN32_WCE) || defined(__MINGW32CE__)) && !defined(AO_HAVE_abort)
 # define abort() _exit(-1) /* there is no abort() in WinCE */
 #endif
 
index 7500efa..c61d359 100644 (file)
@@ -33,7 +33,7 @@
 
 #include "atomic_ops.h"
 
-#if (defined(_WIN32_WCE) || defined(__MINGW32CE__)) && !defined(abort)
+#if (defined(_WIN32_WCE) || defined(__MINGW32CE__)) && !defined(AO_HAVE_abort)
 # define abort() _exit(-1) /* there is no abort() in WinCE */
 #endif
 
index 623f208..71c649f 100644 (file)
@@ -43,7 +43,7 @@
 
 #include "atomic_ops_stack.h" /* includes atomic_ops.h as well */
 
-#if (defined(_WIN32_WCE) || defined(__MINGW32CE__)) && !defined(abort)
+#if (defined(_WIN32_WCE) || defined(__MINGW32CE__)) && !defined(AO_HAVE_abort)
 # define abort() _exit(-1) /* there is no abort() in WinCE */
 #endif