Skip to content

Commit b83ab98

Browse files
authored
PHPC-2166: Add -Wstrict-prototypes dev build flag and fix decl (#1382)
1 parent 594cad9 commit b83ab98

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

config.m4

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ if test "$PHP_MONGODB" != "no"; then
7373
AX_CHECK_COMPILE_FLAG(-Wno-unused-parameter, _MAINTAINER_CFLAGS="$_MAINTAINER_CFLAGS -Wno-unused-parameter" ,, -Werror)
7474
AX_CHECK_COMPILE_FLAG(-Wno-unused-but-set-variable, _MAINTAINER_CFLAGS="$_MAINTAINER_CFLAGS -Wno-unused-but-set-variable" ,, -Werror)
7575
AX_CHECK_COMPILE_FLAG(-Wno-missing-field-initializers, _MAINTAINER_CFLAGS="$_MAINTAINER_CFLAGS -Wno-missing-field-initializers",, -Werror)
76+
AX_CHECK_COMPILE_FLAG(-Wstrict-prototypes, _MAINTAINER_CFLAGS="$_MAINTAINER_CFLAGS -Wstrict-prototypes" ,, -Werror)
7677

7778
MAINTAINER_CFLAGS="$_MAINTAINER_CFLAGS"
7879
STD_CFLAGS="-g -O0 -Wall"

src/phongo_client.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
#include "phongo_classes.h"
2323

24-
const char* php_phongo_crypt_shared_version();
24+
const char* php_phongo_crypt_shared_version(void);
2525

2626
void phongo_manager_init(php_phongo_manager_t* manager, const char* uri_string, zval* options, zval* driverOptions);
2727

0 commit comments

Comments
 (0)