Bug 299589
| Summary: | [JSC][Flatpak SDK] Error building unifdef with GCC 15.x | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Adrian Perez <aperez> |
| Component: | CMake | Assignee: | Adrian Perez <aperez> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | ||
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Adrian Perez
Command to reproduce:
% CC= CXX= ./Tools/Scripts/build-webkit --jsc-only --cmakeargs='-DENABLE_JSC_GLIB_API=ON' --no-fatal-warnings
Error:
../../../Source/ThirdParty/unifdef/unifdef.c:205:1: warning: ‘constexpr’ is not at beginning of declaration [-Wold-style-declaration]
205 | static bool constexpr; /* constant #if expression */
| ^~~~~~
../../../Source/ThirdParty/unifdef/unifdef.c:205:1: warning: useless type name in empty declaration
../../../Source/ThirdParty/unifdef/unifdef.c:205:1: error: ‘constexpr’ in empty declaration
../../../Source/ThirdParty/unifdef/unifdef.c: In function ‘eval_unary’:
../../../Source/ThirdParty/unifdef/unifdef.c:1089:27: error: expected identifier or ‘(’ before ‘=’ token
1089 | constexpr = false;
| ^
../../../Source/ThirdParty/unifdef/unifdef.c:1106:27: error: expected identifier or ‘(’ before ‘=’ token
1106 | constexpr = false;
| ^
../../../Source/ThirdParty/unifdef/unifdef.c: In function ‘ifeval’:
../../../Source/ThirdParty/unifdef/unifdef.c:1173:19: error: expected identifier or ‘(’ before ‘=’ token
1173 | constexpr = killconsts ? false : true;
| ^
../../../Source/ThirdParty/unifdef/unifdef.c:1176:27: error: expected specifier-qualifier-list before ‘?’ token
1176 | return (constexpr ? LT_IF : ret == LT_ERROR ? LT_IF : ret);
| ^
../../../Source/ThirdParty/unifdef/unifdef.c:1169:18: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
1169 | Linetype ret;
| ^~~
../../../Source/ThirdParty/unifdef/unifdef.c: In function ‘debug’:
../../../Source/ThirdParty/unifdef/unifdef.c:1660:17: warning: function ‘debug’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format]
1660 | vwarnx(msg, ap);
| ^~~~~~
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Adrian Perez
Pull request: https://github.com/WebKit/WebKit/pull/51373
EWS
Committed 300574@main (e33b18bc59d6): <https://commits.webkit.org/300574@main>
Reviewed commits have been landed. Closing PR #51373 and removing active labels.