Skip to content

Commit 6f460fd

Browse files
committed
Use diagnostic macros for the warning
1 parent f8d5064 commit 6f460fd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ext/zend_test/test.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
#if defined(HAVE_LIBXML) && !defined(PHP_WIN32)
4646
# include <libxml/globals.h>
4747
# include <libxml/parser.h>
48-
# include "ext/dom/php_dom.h"
4948
#endif
5049

5150
ZEND_DECLARE_MODULE_GLOBALS(zend_test)
@@ -378,14 +377,14 @@ static ZEND_FUNCTION(zend_test_override_libxml_global_state)
378377
{
379378
ZEND_PARSE_PARAMETERS_NONE();
380379

381-
PHP_LIBXML_IGNORE_DEPRECATIONS_START
380+
ZEND_DIAGNOSTIC_IGNORED_START("-Wdeprecated-declarations")
382381
xmlLoadExtDtdDefaultValue = 1;
383382
xmlDoValidityCheckingDefaultValue = 1;
384383
(void) xmlPedanticParserDefault(1);
385384
(void) xmlSubstituteEntitiesDefault(1);
386385
(void) xmlLineNumbersDefault(1);
387386
(void) xmlKeepBlanksDefault(0);
388-
PHP_LIBXML_IGNORE_DEPRECATIONS_END
387+
ZEND_DIAGNOSTIC_IGNORED_END
389388
}
390389
#endif
391390

0 commit comments

Comments
 (0)