&& !defined(AO_HAVE_fetch_compare_and_swap_acquire)
# if defined(AO_CAN_EMUL_CAS)
# include "atomic_ops/sysdeps/emul_cas.h"
-# else
-# error Cannot implement AO_compare_and_swap_full on this architecture.
+# elif !defined(CPPCHECK)
+# error Cannot implement AO_compare_and_swap_full on this architecture.
# endif
#endif /* AO_REQUIRE_CAS && !AO_HAVE_compare_and_swap ... */
# define AO_HAVE_nop_full
#endif
-#if defined(AO_HAVE_nop_acquire)
+#if defined(AO_HAVE_nop_acquire) && !defined(CPPCHECK)
# error AO_nop_acquire is useless: do not define.
#endif
-#if defined(AO_HAVE_nop_release)
+
+#if defined(AO_HAVE_nop_release) && !defined(CPPCHECK)
# error AO_nop_release is useless: do not define.
#endif
#include "../test_and_set_t_is_ao_t.h" /* Probably suboptimal */
#if __TARGET_ARCH_ARM < 6
-# error Do not use with ARM instruction sets lower than v6
+# if !defined(CPPCHECK)
+# error Do not use with ARM instruction sets lower than v6
+# endif
#else
#define AO_ACCESS_CHECK_ALIGNED
}
#define AO_HAVE_test_and_set_full
-#ifdef _WIN64
-# error wrong architecture
+#if defined(_WIN64) && !defined(CPPCHECK)
+# error wrong architecture
#endif
#ifdef AO_ASSUME_VISTA
/* Needed for future IA64 processors. No current clients? */
+#if !defined(CPPCHECK)
# error Untested! Probably does not work.
+#endif
/* We have a wide CAS, but only does an AO_t-wide comparison. */
/* We can't use the Treiber optimization, since we only check */