Skip to content

Commit f88e32d

Browse files
authored
Autotools: Simplify adding tidy cflags (php#15577)
1 parent 690ce6d commit f88e32d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ext/tidy/config.m4

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,12 @@ if test "$PHP_TIDY" != "no"; then
5757
[TIDY_SHARED_LIBADD])
5858
PHP_ADD_INCLUDE([$TIDY_INCDIR])
5959

60-
dnl Add -Wno-ignored-qualifiers as this is an issue upstream
61-
TIDY_COMPILER_FLAGS="$TIDY_CFLAGS -Wno-ignored-qualifiers -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"
62-
PHP_NEW_EXTENSION([tidy], [tidy.c], [$ext_shared],, [$TIDY_COMPILER_FLAGS])
60+
dnl Add -Wno-ignored-qualifiers as this is an issue upstream. Fixed in
61+
dnl tidy-html5 5.7.20: https://github.com/htacg/tidy-html5/issues/866
62+
PHP_NEW_EXTENSION([tidy],
63+
[tidy.c],
64+
[$ext_shared],,
65+
[-Wno-ignored-qualifiers -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1])
6366
PHP_SUBST([TIDY_SHARED_LIBADD])
6467
AC_DEFINE([HAVE_TIDY], [1],
6568
[Define to 1 if the PHP extension 'tidy' is available.])

0 commit comments

Comments
 (0)