summaryrefslogtreecommitdiff
path: root/extra/MacOS.c
diff options
context:
space:
mode:
Diffstat (limited to 'extra/MacOS.c')
-rw-r--r--extra/MacOS.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/extra/MacOS.c b/extra/MacOS.c
index 86557a90..082ee6ed 100644
--- a/extra/MacOS.c
+++ b/extra/MacOS.c
@@ -45,7 +45,9 @@ void* GC_MacGetDataStart(void)
}
fprintf(stderr, "Couldn't load the jump table.");
exit(-1);
- return 0;
+# if !defined(CPPCHECK)
+ return 0; /* to avoid compiler complain about missing return */
+# endif
}
#ifdef USE_TEMPORARY_MEMORY
@@ -159,7 +161,9 @@ void GC_MacFreeTemporaryMemory(void)
}
fprintf(stderr, "Couldn't load the jump table.");
exit(-1);
+# if !defined(CPPCHECK)
return 0;
+# endif
}
#endif /* __option(far_data) */