Skip to content

Commit

Permalink
erts: Fix two compiler warnings on OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
garazdawi committed Mar 28, 2017
1 parent 2079ac0 commit 158de69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion erts/emulator/beam/erl_process.c
Original file line number Diff line number Diff line change
Expand Up @@ -11361,7 +11361,7 @@ erts_execute_dirty_system_task(Process *c_p)

switch (st->type) {
case ERTS_PSTT_CLA:
ASSERT(is_value(st_res));
ASSERT(is_value(cla_res));
st_res = cla_res;
break;
case ERTS_PSTT_GC_MAJOR:
Expand Down
2 changes: 1 addition & 1 deletion erts/etc/unix/to_erl.c
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ int main(int argc, char **argv)

if (len) {
#ifdef DEBUG
if(write(1, buf, len));
(void)write(1, buf, len);
#endif
if (write_all(wfd, buf, len) != len) {
fprintf(stderr, "Error in writing to FIFO.\n");
Expand Down

0 comments on commit 158de69

Please sign in to comment.