Skip to content
Commit 074dbb99 authored by James Harris's avatar James Harris Committed by Anas Nashif
Browse files

scripts: gen_syscalls: declare syscalls with void instead of zero args



In C, `void foo(void);` and `void foo();` mean subtly different things.
The former means "foo takes zero arguments"; the latter means
"foo takes an unspecified number of arguments". This can result in
calling convention mismatches in exceptional cases.

Change to emitting `(void)` instead of `()` for a syscall with
zero arguments.

Signed-off-by: default avatarJames Harris <james.harris@intel.com>
parent 1337f7fe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment