Skip to content

Commit 3d18af2

Browse files
committed
Disable deprecations in developer mode
1 parent 603d936 commit 3d18af2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

config.m4

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ if test "$PHP_MONGODB" != "no"; then
9898
AX_CHECK_COMPILE_FLAG(-Wno-unused-parameter, PHP_MONGODB_DEV_CFLAGS="$PHP_MONGODB_DEV_CFLAGS -Wno-unused-parameter" ,, -Werror)
9999
AX_CHECK_COMPILE_FLAG(-Wno-unused-but-set-variable, PHP_MONGODB_DEV_CFLAGS="$PHP_MONGODB_DEV_CFLAGS -Wno-unused-but-set-variable" ,, -Werror)
100100
AX_CHECK_COMPILE_FLAG(-Wno-missing-field-initializers, PHP_MONGODB_DEV_CFLAGS="$PHP_MONGODB_DEV_CFLAGS -Wno-missing-field-initializers",, -Werror)
101+
dnl Avoid warnings about deprecated libmongoc features, specifically hedged reads
102+
AX_CHECK_COMPILE_FLAG(-Wno-deprecated-declarations, PHP_MONGODB_DEV_CFLAGS="$PHP_MONGODB_DEV_CFLAGS -Wno-deprecated-declarations" ,, -Werror)
101103

102104
if test "$PHP_MONGODB_PHP_VERSION_ID" -ge "80108"; then
103105
AX_CHECK_COMPILE_FLAG(-Wstrict-prototypes, PHP_MONGODB_DEV_CFLAGS="$PHP_MONGODB_DEV_CFLAGS -Wstrict-prototypes",, -Werror)

0 commit comments

Comments
 (0)