Browse Source

Merge pull request #1950 from svaarala/xcode9-warning-fixes

Some XCode9 warning fixes
pull/1951/head
Sami Vaarala 6 years ago
committed by GitHub
parent
commit
c0f51e2366
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      RELEASES.rst
  2. 6
      src-input/duk_js_call.c

2
RELEASES.rst

@ -3379,7 +3379,7 @@ Planned
* Fix harmless -Wcast-align warnings on armhf (GH-1793)
* Various compiler warning fixes (GH-1788, GH-1932, GH-1924, etc)
* Various compiler warning fixes (GH-1788, GH-1932, GH-1924, GH-1950, etc)
* Add automatic workaround for union aliasing issues with FreeBSD + -m32 +
Clang prior to 5.0; the aliasing issues cause packed duk_tval to work

6
src-input/duk_js_call.c

@ -2055,6 +2055,12 @@ DUK_LOCAL duk_int_t duk__handle_call_raw(duk_hthread *thr,
* Because 'act' is not zeroed, all fields must be filled in.
*/
/* Should not be necessary, but initialize to silence warnings. */
act = NULL;
nargs = 0;
nregs = 0;
vs_min_bytes = 0;
#if defined(DUK_USE_TAILCALL)
use_tailcall = (call_flags & DUK_CALL_FLAG_TAILCALL);
if (use_tailcall) {

Loading…
Cancel
Save