circumvent oneAPI 2025 warning in restart.c
1 unresolved thread
1 unresolved thread
Compare changes
+ 9
− 7
@@ -191,19 +191,21 @@ void restart_read(struct engine *e, const char *filename) {
Trying to compile with oneapi-2025.0.0 gets me this -Werror
:
restart.c:195:18: error: variable length array folded to constant array as an extension [-Werror,-Wgnu-folding-constant]
195 | char signature[strlen(SWIFT_RESTART_SIGNATURE) + 1];
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
this minor change circumvents it.