-
-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
Description
I have failed to run custom build command for pcre2-sys v0.2.6 on the centos7 platform.
The error message is
warning: upstream/src/pcre2_script_run.c: In function '_pcre2_script_run_8':
warning: upstream/src/pcre2_script_run.c:109:1: error: 'for' loop initial declarations are only allowed in C99 mode
warning: for (int i = 0; i < FULL_MAPSIZE; i++) require_map[i] = 0;
warning: ^
warning: upstream/src/pcre2_script_run.c:109:1: note: use option -std=c99 or -std=gnu99 to compile your code
warning: upstream/src/pcre2_script_run.c:248:7: error: 'for' loop initial declarations are only allowed in C99 mode
warning: for (int i = 0; i < FULL_MAPSIZE; i++)
warning: ^
warning: upstream/src/pcre2_script_run.c:285:9: error: 'for' loop initial declarations are only allowed in C99 mode
warning: for (int i = 0; i < FULL_MAPSIZE; i++) require_map[i] &= map[i];
warning: ^
error: failed to run custom build command for `pcre2-sys v0.2.6`Metadata
Metadata
Assignees
Labels
No labels