Skip to content
Commit 10f94d8f authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Masahiro Yamada
Browse files

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: default avatarArnd Bergmann <arnd@arndb.de>
Reviewed-By: default avatarTony Finch <dot@dotat.at>
Reviewed-by: default avatarNicolas Schier <nicolas@fjasle.eu>
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 72a9913a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment