Skip to content

Commit

Permalink
smc: fix smc_init() definition
Browse files Browse the repository at this point in the history
clang 17 now enforces strict prototyping. add void to the parameters
to fix building with clang going forward.

Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
  • Loading branch information
chadmed authored and marcan committed Oct 8, 2023
1 parent 50ac69e commit c3820a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/smc.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ void smc_shutdown(smc_dev_t *smc)
free(smc);
}

smc_dev_t *smc_init()
smc_dev_t *smc_init(void)
{
smc_dev_t *smc = calloc(1, sizeof(smc_dev_t));
if (!smc)
Expand Down

0 comments on commit c3820a5

Please sign in to comment.