Fix GCC 12 compiler warnings (#10713)

* Fix -Wunused-but-set-variable compiler warning in ext/mysqli

* Fix -Wstrict-prototypes compiler warning in ext/mysqlnd

* Fix -Wstrict-prototypes compiler warning in ext/soap

* Fix -Wunused-but-set-variable compiler warning in ext/exif

However, this code looks really sketchy...

* Fix -Wstrict-prototypes compiler warning in ext/openssl

* Fix -Wstrict-prototypes compiler warning in ext/dba

Add void to our bundled libraries

* Refactor bundled BCMath library

Fix -Wdeprecated-non-prototype compiler warnings
Use bool instead of char/int
Cleanup some useless header includes
This commit is contained in:
George Peter Banyard 2023-02-28 14:21:01 +00:00 committed by GitHub
parent 02ec4c5071
commit f13d541ca6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 71 additions and 161 deletions

View file

@ -3414,7 +3414,7 @@ static void set_xsi_type(xmlNodePtr node, char *type)
set_ns_prop(node, XSI_NAMESPACE, "type", type);
}
void encode_reset_ns()
void encode_reset_ns(void)
{
SOAP_GLOBAL(cur_uniq_ns) = 0;
SOAP_GLOBAL(cur_uniq_ref) = 0;
@ -3426,7 +3426,7 @@ void encode_reset_ns()
zend_hash_init(SOAP_GLOBAL(ref_map), 0, NULL, NULL, 0);
}
void encode_finish()
void encode_finish(void)
{
SOAP_GLOBAL(cur_uniq_ns) = 0;
SOAP_GLOBAL(cur_uniq_ref) = 0;