]> granicus.if.org Git - gc/commitdiff
Fix compilation error in get_main_stack_base (Emscripten)
authorIvan Maidanski <ivmai@mail.ru>
Tue, 20 Jun 2017 18:22:53 +0000 (21:22 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 2 Jul 2017 08:40:56 +0000 (11:40 +0300)
Issue #163 (bdwgc).

* os_dep.c [!BEOS && !AMIGA && !OS2 && !MSWIN32 && !MSWINCE && !CYGWIN32
&& !GC_OPENBSD_THREADS && !STACKBOTTOM && !HEURISTIC1 && !HEURISTIC2
&& !LINUX_STACKBOTTOM && !FREEBSD_STACKBOTTOM] (GC_get_main_stack_base):
Set result to null if STACK_NOT_SCANNED (instead of #error).

os_dep.c

index 84f9e8b084ae80867dfc3e451ad9f8cf0b02a9aa..4eb8fa8cf582caa40df318b523dffbd45ba6d75b 100644 (file)
--- a/os_dep.c
+++ b/os_dep.c
@@ -1252,7 +1252,7 @@ GC_INNER size_t GC_page_size = 0;
 #           endif
 #         endif
         }
-#     elif defined(CPPCHECK)
+#     elif defined(STACK_NOT_SCANNED) || defined(CPPCHECK)
         result = NULL;
 #     else
 #       error None of HEURISTIC* and *STACKBOTTOM defined!