Eliminate 'value of GC_INLINE unknown' cppcheck info message
authorIvan Maidanski <ivmai@mail.ru>
Tue, 14 Feb 2017 10:44:34 +0000 (13:44 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 14 Feb 2017 10:44:56 +0000 (13:44 +0300)
(fix commit 46a2411)

* include/private/gc_atomic_ops.h (AO_INLINE): Check GC_PRIVATE_H is
defined instead of "ifdef GC_INLINE".

include/private/gc_atomic_ops.h

index e21ed52..2cf45f9 100644 (file)
@@ -25,7 +25,7 @@
 # include "gc.h" /* for GC_word */
   typedef GC_word AO_t;
 
-# ifdef GC_INLINE
+# ifdef GC_PRIVATE_H /* have GC_INLINE */
 #   define AO_INLINE GC_INLINE
 # else
 #   define AO_INLINE static __inline