diff options
author | Arnd Bergmann <arnd@arndb.de> | 2024-04-08 09:17:52 +0200 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2024-04-23 00:09:41 +0900 |
commit | 10f94d8fcc0880c93d7697184fe199022792a61c (patch) | |
tree | f09032c1a885f70460278ea9616dcd5b3df17292 /Documentation | |
parent | 72a9913a8554f5c05b20005980d3dfbf905af9f8 (diff) |
scripts/unifdef: avoid constexpr keyword
Starting with c23, 'constexpr' is a keyword in C like in C++ and cannot
be used as an identifier:
scripts/unifdef.c:206:25: error: 'constexpr' can only be used in variable declarations
206 | static bool constexpr; /* constant #if expression */
| ^
scripts/unifdef.c:880:13: error: expected identifier or '('
880 | constexpr = false;
| ^
Rename this instance to allow changing to C23 at some point in the future.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-By: Tony Finch <dot@dotat.at>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions