Skip to content

Commit 649198b

Browse files
committed
Enable all warnings for re2c
This helps noticing issues like GH-17204 and GH-17523 sooner.
1 parent 677a1f8 commit 649198b

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
@@ -148,7 +148,7 @@ PHP_RUNPATH_SWITCH
148148

149149
dnl Checks for some support/generator progs.
150150
PHP_PROG_BISON([3.0.0])
151-
PHP_PROG_RE2C([1.0.3], [--no-generation-date])
151+
PHP_PROG_RE2C([1.0.3], [--no-generation-date -W])
152152
dnl Find installed PHP. Minimum supported version for gen_stub.php is PHP 7.4.
153153
PHP_PROG_PHP([7.4])
154154

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
@@ -3017,7 +3017,7 @@ function toolset_setup_project_tools()
30173017
}
30183018

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

0 commit comments

Comments
 (0)