From 6357ec8f32b2ebbbd94f480d785ceeab15a2303a Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Mon, 24 Apr 2017 20:47:35 +0300 Subject: [PATCH] Workaround 'value of abort unknown' cppcheck info message (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 | 2 +- tests/run_parallel.h | 2 +- tests/test_stack.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/atomic_ops_malloc.c b/src/atomic_ops_malloc.c index 74c96c0..4748e6a 100644 --- a/src/atomic_ops_malloc.c +++ b/src/atomic_ops_malloc.c @@ -27,7 +27,7 @@ # include #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 diff --git a/tests/run_parallel.h b/tests/run_parallel.h index 7500efa..c61d359 100644 --- a/tests/run_parallel.h +++ b/tests/run_parallel.h @@ -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 diff --git a/tests/test_stack.c b/tests/test_stack.c index 623f208..71c649f 100644 --- a/tests/test_stack.c +++ b/tests/test_stack.c @@ -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 -- 2.40.0