diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2015-12-19 13:44:36 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2015-12-19 16:21:23 +0000 |
commit | 6a61f8271f372e74aa0d2d44533dd1d7295eff64 (patch) | |
tree | 5139fb141f6b44d85a6d694f31d2812613157dc3 /Source | |
parent | ec8a5c71cbcc09e820d4d4d2e212b8d1b4f418b8 (diff) | |
download | swig-6a61f8271f372e74aa0d2d44533dd1d7295eff64.tar.gz |
Php fix for -Wmissing-field-initializers warning
Use ZEND_FE_END (introduced sometime around 5.2) to obtain the correct
number of arguments for zend_function_entry. Fallback to the original
3 argument initializer if not defined, however, this will not fix the
initializer warning though for some older versions of PHP.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/Modules/php.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Modules/php.cxx b/Source/Modules/php.cxx index 37a8f9628..64f03ab21 100644 --- a/Source/Modules/php.cxx +++ b/Source/Modules/php.cxx @@ -639,7 +639,7 @@ public: Printv(f_begin, all_cs_entry, "\n\n", s_arginfo, "\n\n", s_entry, " SWIG_ZEND_NAMED_FE(swig_", module, "_alter_newobject,_wrap_swig_", module, "_alter_newobject,NULL)\n" " SWIG_ZEND_NAMED_FE(swig_", module, "_get_newobject,_wrap_swig_", module, "_get_newobject,NULL)\n" - "{NULL, NULL, NULL}\n};\n\n", NIL); + " ZEND_FE_END\n};\n\n", NIL); Printv(f_begin, s_init, NIL); Delete(s_header); Delete(s_wrappers); |