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 | |
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')
-rw-r--r-- | debugger/include/checkpoint.h | 26 | ||||
-rw-r--r-- | debugger/include/cli.h | 10 |
2 files changed, 18 insertions, 18 deletions
diff --git a/debugger/include/checkpoint.h b/debugger/include/checkpoint.h index cede47da..865052ba 100644 --- a/debugger/include/checkpoint.h +++ b/debugger/include/checkpoint.h @@ -128,12 +128,12 @@ void checkpoint(checkpoint_st *c, char *file, int32_t line, char *tag); * \retval FWK_E_NOMEM when checkpoints limit is reached. * */ -#define checkpoint_register(c, name) \ - __extension__({ \ - (void)c; \ - (void)name; \ - FWK_SUCCESS; \ - }) +# define checkpoint_register(c, name) \ + ({ \ + (void)c; \ + (void)name; \ + FWK_SUCCESS; \ + }) /*! * \brief Insert a checkpoint @@ -151,13 +151,13 @@ void checkpoint(checkpoint_st *c, char *file, int32_t line, char *tag); * \param line Line number of the checkpoint, use __LINE__ macro. * \param tag Checkpoint tag string. */ -#define checkpoint(c, file, line, tag) \ - do { \ - (void)c; \ - (void)file; \ - (void)line; \ - (void)tag; \ - } while (0) +# define checkpoint(c, file, line, tag) \ + do { \ + (void)c; \ + (void)file; \ + (void)line; \ + (void)tag; \ + } while (0) #endif 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_ */ |