[PATCH 5/6] jscript: Don't realloc interpreter stack.
Alexandre Julliard
julliard at winehq.org
Wed Jun 3 15:32:33 CDT 2020
Jacek Caban <jacek at codeweavers.com> writes:
> We share the stack for all calls in script instance, so it no loner
> makes sense.
>
> Signed-off-by: Jacek Caban <jacek at codeweavers.com>
> ---
> dlls/jscript/engine.c | 27 ++++++++++-----------------
> dlls/jscript/jscript.h | 1 -
> 2 files changed, 10 insertions(+), 18 deletions(-)
This is causing compiler warnings here:
i686-w64-mingw32-gcc -c -o engine.cross.o engine.c -I. -I../../include -I../../include/msvcrt -D__WINESRC__ -D_UCRT \
-DWINE_CROSS_PE -Wall -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body \
-Wignored-qualifiers -Wno-packed-not-aligned -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits \
-Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op \
-fno-omit-frame-pointer -gdwarf-2 -gstrict-dwarf -Werror -g -O2 -fno-diagnostics-show-caret
engine.c: In function ‘interp_add’:
engine.c:72:34: error: ‘*((void *)&ret+4)’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
engine.c:1778:19: note: ‘*((void *)&ret+4)’ was declared here
engine.c:72:34: error: ‘ret’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
engine.c:1778:19: note: ‘ret’ was declared here
cc1: all warnings being treated as errors
make: *** [Makefile:458: engine.cross.o] Error 1
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list