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: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> (cherry picked from commit 10f94d8f) Signed-off-by:
Srinivasarao Pathipati <quic_c_spathi@quicinc.com> (cherry picked from commit b7fd55a2)
Loading
Please register or sign in to comment