scripts/unifdef: avoid constexpr keyword
authorArnd Bergmann <arnd@arndb.de>
Mon, 8 Apr 2024 07:17:52 +0000 (09:17 +0200)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 22 Apr 2024 15:09:41 +0000 (00:09 +0900)
commit10f94d8fcc0880c93d7697184fe199022792a61c
treef09032c1a885f70460278ea9616dcd5b3df17292
parent72a9913a8554f5c05b20005980d3dfbf905af9f8
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>
scripts/unifdef.c