From: Ivan Maidanski Date: Mon, 10 Jul 2017 21:41:53 +0000 (+0300) Subject: Workaround 'GCC_ATOMIC_TEST_AND_SET_TRUEVAL unknown' cppcheck info message X-Git-Tag: v8.0.0~647 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=14b02fc31ee785e51f2d8cf2b68719abee6373de;p=gc 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. --- 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