Skip to content

Commit 5cd96f0

Browse files
committed
Fix compiler warnings
1 parent 060a344 commit 5cd96f0

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

php_weakref.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include "zend_exceptions.h"
2727
#include "ext/standard/info.h"
2828
#include "wr_weakref.h"
29-
//#include "wr_weakmap.h" FIXME
29+
#include "wr_weakmap.h"
3030
#include "wr_store.h"
3131
#include "php_weakref.h"
3232

@@ -40,6 +40,7 @@ PHP_MINIT_FUNCTION(weakref) /* {{{ */
4040
{
4141
PHP_MINIT(wr_weakref)(INIT_FUNC_ARGS_PASSTHRU);
4242
PHP_MINIT(wr_weakmap)(INIT_FUNC_ARGS_PASSTHRU);
43+
return SUCCESS;
4344
}
4445
/* }}} */
4546

wr_weakmap.h

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ typedef struct _wr_weakmap_refval {
3636

3737
extern WEAKREF_API zend_class_entry *wr_ce_WeakMap;
3838

39+
PHP_MINIT_FUNCTION(wr_weakmap);
40+
3941
#endif /* WR_WEAKMAP_H */
4042

4143
/*

wr_weakref.h

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ typedef struct _wr_weakref_object {
3434

3535
extern WEAKREF_API zend_class_entry *wr_ce_WeakRef;
3636

37+
PHP_MINIT_FUNCTION(wr_weakref);
38+
3739
#endif /* WR_WEAKREF_H */
3840

3941
/*

0 commit comments

Comments
 (0)