diff options
author | Chris Kay <chris.kay@arm.com> | 2020-06-04 14:40:29 +0100 |
---|---|---|
committer | Chris Kay <chris@cjkay.com> | 2020-06-09 15:26:35 +0100 |
commit | ad83ff78962341908674993c92057493f8afd9b0 (patch) | |
tree | 03a0e614b69216b43d16b64aa6f2a315d17bd23a /debugger/include/cli.h | |
parent | 2182425300a2ebcbb36b44b4d4a4a2c78cd2d96c (diff) |
misc: Switch from ISO C11 to GNU C11
We use a number of compiler extensions already, and the strict rules
required for compliance with ISO C11 can be prohitive for embedded
development.
This commit moves our C variant from ISO C11 to GNU C11, which is
compatible with all the toolchains we currently support.
Change-Id: I58ce6479c4f8ca9039d957d08aadd3ebff4ac8fc
Signed-off-by: Chris Kay <chris.kay@arm.com>
Diffstat (limited to 'debugger/include/cli.h')
-rw-r--r-- | debugger/include/cli.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/debugger/include/cli.h b/debugger/include/cli.h index ef34d323..bbe2fdf3 100644 --- a/debugger/include/cli.h +++ b/debugger/include/cli.h @@ -294,11 +294,11 @@ int cli_command_register(cli_command_st new_cmd); * \retval CLI_SUCCESS Operation succeeded. * \retval CLI_ERR_MEM Not enough memory. */ -#define cli_command_register(new_cmd) \ - __extension__({ \ - (void)new_cmd; \ - FWK_SUCCESS; \ - }) +# define cli_command_register(new_cmd) \ + ({ \ + (void)new_cmd; \ + FWK_SUCCESS; \ + }) #endif #endif /* _CLI_H_ */ |