Skip to content

Commit c3820a5

Browse files
chadmedmarcan
authored andcommitted
smc: fix smc_init() definition
clang 17 now enforces strict prototyping. add void to the parameters to fix building with clang going forward. Signed-off-by: James Calligeros <[email protected]>
1 parent 50ac69e commit c3820a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/smc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ void smc_shutdown(smc_dev_t *smc)
120120
free(smc);
121121
}
122122

123-
smc_dev_t *smc_init()
123+
smc_dev_t *smc_init(void)
124124
{
125125
smc_dev_t *smc = calloc(1, sizeof(smc_dev_t));
126126
if (!smc)

0 commit comments

Comments
 (0)