From: Ivan Maidanski Date: Tue, 20 Jun 2017 18:22:53 +0000 (+0300) Subject: Fix compilation error in get_main_stack_base (Emscripten) X-Git-Tag: v8.0.0~673 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=452f4a3bb94b443b13a109ed6c2895c54497a8ec;p=gc Fix compilation error in get_main_stack_base (Emscripten) 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). --- diff --git a/os_dep.c b/os_dep.c index 0f22b80e..d941afcd 100644 --- 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!