portability: Remove C99-illegal semicolons from the global scope

This commit touches the C codebase and the python syscall generator.

The Z_GENLIST-macros expand to whole functions. Once expanded by the
preprocessor we notice a semicolon is put after the function body. But
ISO C99 does not allow extra ‘;’ outside of a function. Though this is
accepted by GCC with GNU extensions, it is not by Clang.

Signed-off-by: Mark Ruvald Pedersen <mped@oticon.com>
This commit is contained in:
Mark Ruvald Pedersen 2018-09-11 12:21:02 +02:00 committed by Anas Nashif
commit f0e2e1bccb
3 changed files with 25 additions and 25 deletions

View file

@ -147,7 +147,7 @@ def analyze_fn(match_group):
flat_args = [sys_id, func_name] + flat_args
argslist = ", ".join(flat_args)
invocation = "%s(%s);" % (macro, argslist)
invocation = "%s(%s)" % (macro, argslist)
handler = "_handler_" + func_name