mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Enable all warnings for re2c (#19051)
This helps noticing issues like GH-17204 and GH-17523 sooner.
This commit is contained in:
@@ -159,7 +159,7 @@ PHP_RUNPATH_SWITCH
|
||||
|
||||
dnl Checks for some support/generator progs.
|
||||
PHP_PROG_BISON([3.0.0])
|
||||
PHP_PROG_RE2C([1.0.3], [--no-generation-date])
|
||||
PHP_PROG_RE2C([1.0.3], [--no-generation-date -W])
|
||||
dnl Find installed PHP. Minimum supported version for gen_stub.php is PHP 8.1.
|
||||
PHP_PROG_PHP([8.1])
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ YACC=${YACC:-bison}
|
||||
YACC="$YACC -l"
|
||||
YFLAGS="-Wall"
|
||||
RE2C=${RE2C:-re2c}
|
||||
RE2C_FLAGS="--no-generation-date -i"
|
||||
RE2C_FLAGS="--no-generation-date -i -W"
|
||||
SED=${SED:-sed}
|
||||
MAKE=${MAKE:-make}
|
||||
|
||||
|
||||
@@ -3018,7 +3018,7 @@ function toolset_setup_project_tools()
|
||||
}
|
||||
|
||||
var RE2C = PATH_PROG('re2c');
|
||||
DEFINE('RE2C_FLAGS', '--no-generation-date');
|
||||
DEFINE('RE2C_FLAGS', '--no-generation-date -W');
|
||||
if (RE2C) {
|
||||
var RE2CVERS = probe_binary(RE2C, "version");
|
||||
STDOUT.WriteLine(' Detected re2c version ' + RE2CVERS);
|
||||
|
||||
Reference in New Issue
Block a user