]> granicus.if.org Git - gc/commitdiff
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>
Tue, 1 Nov 2016 22:06:20 +0000 (01:06 +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 87a896e739c0040275cd99f2b33a987d44dba1e4..d76cc6353f4e3a0303dc3db23f2f82760405130f 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