Fix 'syntax error' reported by cppcheck for mach_dep
authorIvan Maidanski <ivmai@mail.ru>
Wed, 12 Oct 2016 19:59:22 +0000 (22:59 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 12 Oct 2016 19:59:22 +0000 (22:59 +0300)
The error is reported at line containing "asm".

* mach_dep.c [MACOS && M68K && THINK_C] (GC_push_regs): Do not define
if CPPCHECK.

mach_dep.c

index fbf6c43..7fa8774 100644 (file)
 
 # elif defined(MACOS)
 
-#   if defined(M68K) && defined(THINK_C)
+#   if defined(M68K) && defined(THINK_C) && !defined(CPPCHECK)
 #     define PushMacReg(reg) \
               move.l  reg,(sp) \
               jsr             GC_push_one