Skip to content

Commit

Permalink
Merge pull request #1950 from svaarala/xcode9-warning-fixes
Browse files Browse the repository at this point in the history
Some XCode9 warning fixes
  • Loading branch information
svaarala authored Jul 28, 2018
2 parents 6cca6fd + 0eb0fef commit c0f51e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion RELEASES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions src-input/duk_js_call.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c0f51e2

Please sign in to comment.