From 14b02fc31ee785e51f2d8cf2b68719abee6373de Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Tue, 11 Jul 2017 00:41:53 +0300 Subject: [PATCH] Workaround 'GCC_ATOMIC_TEST_AND_SET_TRUEVAL unknown' cppcheck info message (fix commit 46a2411) * include/private/gc_atomic_ops.h [__GCC_ATOMIC_TEST_AND_SET_TRUEVAL] (AO_TS_SET): Do not use __GCC_ATOMIC_TEST_AND_SET_TRUEVAL if CPPCHECK. --- include/private/gc_atomic_ops.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/private/gc_atomic_ops.h b/include/private/gc_atomic_ops.h index 2cf45f9a..adb131a5 100644 --- a/include/private/gc_atomic_ops.h +++ b/include/private/gc_atomic_ops.h @@ -34,7 +34,7 @@ typedef unsigned char AO_TS_t; # define AO_TS_CLEAR 0 # define AO_TS_INITIALIZER (AO_TS_t)AO_TS_CLEAR -# ifdef __GCC_ATOMIC_TEST_AND_SET_TRUEVAL +# if defined(__GCC_ATOMIC_TEST_AND_SET_TRUEVAL) && !defined(CPPCHECK) # define AO_TS_SET __GCC_ATOMIC_TEST_AND_SET_TRUEVAL # else # define AO_TS_SET (AO_TS_t)0xff -- 2.40.0