diff options
author | Lukas Larsson <[email protected]> | 2017-03-27 07:20:19 -0700 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2017-03-28 10:41:19 +0200 |
commit | 158de690ba539f4048ee0634e1d2ee1ffb76a68f (patch) | |
tree | 54aa08d457cf5b773498b1e453f8a9d4a04bb26c | |
parent | 2079ac0b81d7796d3296d82ed4d11b91f699e139 (diff) | |
download | otp-158de690ba539f4048ee0634e1d2ee1ffb76a68f.tar.gz otp-158de690ba539f4048ee0634e1d2ee1ffb76a68f.tar.bz2 otp-158de690ba539f4048ee0634e1d2ee1ffb76a68f.zip |
erts: Fix two compiler warnings on OS X
-rw-r--r-- | erts/emulator/beam/erl_process.c | 2 | ||||
-rw-r--r-- | erts/etc/unix/to_erl.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_process.c b/erts/emulator/beam/erl_process.c index 4fca47d399..2cd65b786f 100644 --- a/erts/emulator/beam/erl_process.c +++ b/erts/emulator/beam/erl_process.c @@ -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: diff --git a/erts/etc/unix/to_erl.c b/erts/etc/unix/to_erl.c index 0bd469727c..0ccd7ead3e 100644 --- a/erts/etc/unix/to_erl.c +++ b/erts/etc/unix/to_erl.c @@ -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"); |