diff options
author | Frej Drejhammar <frej.drejhammar@gmail.com> | 2023-04-06 08:54:16 +0200 |
---|---|---|
committer | Frej Drejhammar <frej.drejhammar@gmail.com> | 2023-04-06 09:02:33 +0200 |
commit | d5fe11a8925293c83da777c2af7d8211d6a035ab (patch) | |
tree | 064d9e0d358dd196e90774a2649671a4bb1f87c0 /erts/emulator/sys/unix/erl_unix_sys.h | |
parent | c101574adf0c562650e0baf2a8d14e8ab61d91a6 (diff) | |
download | erlang-d5fe11a8925293c83da777c2af7d8211d6a035ab.tar.gz |
erts: Modernize K&R-style functions
Clang 16 now warns about functions using K&R syntax. Instead of
juggling with compiler warning options, it is better to just bite the
bullet and modernize the source code.
Diffstat (limited to 'erts/emulator/sys/unix/erl_unix_sys.h')
-rw-r--r-- | erts/emulator/sys/unix/erl_unix_sys.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/sys/unix/erl_unix_sys.h b/erts/emulator/sys/unix/erl_unix_sys.h index c93c0dc5cc..3614aecd17 100644 --- a/erts/emulator/sys/unix/erl_unix_sys.h +++ b/erts/emulator/sys/unix/erl_unix_sys.h @@ -281,7 +281,7 @@ ERTS_GLB_INLINE ErtsSysPerfCounter erts_sys_perf_counter(void); #if ERTS_GLB_INLINE_INCL_FUNC_DEF ERTS_GLB_FORCE_INLINE ErtsSysPerfCounter -erts_sys_perf_counter() +erts_sys_perf_counter(void) { return (*erts_sys_time_data__.r.o.perf_counter)(); } |