Skip to content

Commit 4fbe411

Browse files
authored
Enable all warnings for re2c (#19051)
This helps noticing issues like GH-17204 and GH-17523 sooner.
1 parent 7134e69 commit 4fbe411

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ PHP_RUNPATH_SWITCH
159159

160160
dnl Checks for some support/generator progs.
161161
PHP_PROG_BISON([3.0.0])
162-
PHP_PROG_RE2C([1.0.3], [--no-generation-date])
162+
PHP_PROG_RE2C([1.0.3], [--no-generation-date -W])
163163
dnl Find installed PHP. Minimum supported version for gen_stub.php is PHP 8.1.
164164
PHP_PROG_PHP([8.1])
165165

scripts/dev/genfiles

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ YACC=${YACC:-bison}
3737
YACC="$YACC -l"
3838
YFLAGS="-Wall"
3939
RE2C=${RE2C:-re2c}
40-
RE2C_FLAGS="--no-generation-date -i"
40+
RE2C_FLAGS="--no-generation-date -i -W"
4141
SED=${SED:-sed}
4242
MAKE=${MAKE:-make}
4343

win32/build/confutils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3018,7 +3018,7 @@ function toolset_setup_project_tools()
30183018
}
30193019

30203020
var RE2C = PATH_PROG('re2c');
3021-
DEFINE('RE2C_FLAGS', '--no-generation-date');
3021+
DEFINE('RE2C_FLAGS', '--no-generation-date -W');
30223022
if (RE2C) {
30233023
var RE2CVERS = probe_binary(RE2C, "version");
30243024
STDOUT.WriteLine(' Detected re2c version ' + RE2CVERS);

0 commit comments

Comments
 (0)