From c69e35f2210ff9df5953b2fddc9bb133ea32b8f3 Mon Sep 17 00:00:00 2001 From: Bert Wesarg Date: Sat, 12 Dec 2020 08:52:58 +0100 Subject: [PATCH] Avoid empty-argument lists in C function declarations `()` as a function argument list in C is equivalent to `(...)`, i.e, in C you get at most a warning, if it is called with too many arguments. Clarify this situation by explicitly stating `(void)` as argument list. --- include/hsa.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/hsa.h b/include/hsa.h index 563c6a0..4aab91a 100644 --- a/include/hsa.h +++ b/include/hsa.h @@ -306,7 +306,7 @@ typedef enum { * @retval ::HSA_STATUS_ERROR_REFCOUNT_OVERFLOW The HSA runtime reference * count reaches INT32_MAX. */ -hsa_status_t HSA_API hsa_init(); +hsa_status_t HSA_API hsa_init(void); /** * @brief Shut down the HSA runtime. @@ -328,7 +328,7 @@ hsa_status_t HSA_API hsa_init(); * initialized. * */ -hsa_status_t HSA_API hsa_shut_down(); +hsa_status_t HSA_API hsa_shut_down(void); /** @} **/