diff options
author | Lukas Larsson <[email protected]> | 2018-05-15 10:26:02 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2018-05-15 10:26:02 +0200 |
commit | 3b3e2f46841e3e86c991be92d62cbb0360ca80e3 (patch) | |
tree | 5fc8a58640a937ca13f0bf8780fd91f87705a8f3 /erts | |
parent | 0c737f730eccd5716b6d87b0ef690fc7ad02d547 (diff) | |
parent | fa4fcc2bb54b6e60a9b9379707a5d30403b011ac (diff) | |
download | otp-3b3e2f46841e3e86c991be92d62cbb0360ca80e3.tar.gz otp-3b3e2f46841e3e86c991be92d62cbb0360ca80e3.tar.bz2 otp-3b3e2f46841e3e86c991be92d62cbb0360ca80e3.zip |
Merge branch 'lukas/erts/otp-21-misc'
* lukas/erts/otp-21-misc:
erts: Fix unused variable warning in unix prim file
erts: Fix erts_os_times warning
kernel: Fix comment in kernel_config
kernel: Refactor erl_signal_handler startup
kernel: Remove doc for unused browser_cmd variable
Diffstat (limited to 'erts')
-rw-r--r-- | erts/emulator/nifs/unix/unix_prim_file.c | 2 | ||||
-rw-r--r-- | erts/emulator/sys/unix/erl_unix_sys.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/nifs/unix/unix_prim_file.c b/erts/emulator/nifs/unix/unix_prim_file.c index 1637f9cb71..2b112dda76 100644 --- a/erts/emulator/nifs/unix/unix_prim_file.c +++ b/erts/emulator/nifs/unix/unix_prim_file.c @@ -512,8 +512,8 @@ int efile_sync(efile_data_t *d, int data_only) { } int efile_advise(efile_data_t *d, Sint64 offset, Sint64 length, enum efile_advise_t advise) { - efile_unix_t *u = (efile_unix_t*)d; #ifdef HAVE_POSIX_FADVISE + efile_unix_t *u = (efile_unix_t*)d; int p_advise; switch(advise) { diff --git a/erts/emulator/sys/unix/erl_unix_sys.h b/erts/emulator/sys/unix/erl_unix_sys.h index e367d565a7..10adf80875 100644 --- a/erts/emulator/sys/unix/erl_unix_sys.h +++ b/erts/emulator/sys/unix/erl_unix_sys.h @@ -264,7 +264,7 @@ erts_os_monotonic_time(void) ERTS_GLB_INLINE void erts_os_times(ErtsMonotonicTime *mtimep, ErtsSystemTime *stimep) { - return (*erts_sys_time_data__.r.o.os_times)(mtimep, stimep); + (*erts_sys_time_data__.r.o.os_times)(mtimep, stimep); } #endif /* ERTS_OS_TIMES_INLINE_FUNC_PTR_CALL__ */ |