Skip to content
Snippets Groups Projects
Commit 2b5b5868 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Srinivasarao Pathipati
Browse files

UPSTREAM: 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.

Bug: 401172689
Bug: 404098011
Change-Id: I19e1c13f5dcffe98b8189d3317100f20774f1d4c
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>
(cherry picked from commit 10f94d8f)
Signed-off-by: default avatarSrinivasarao Pathipati <quic_c_spathi@quicinc.com>
(cherry picked from commit b7fd55a2)
parent 6726d0da
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment