Fix some minor warnings (#8568)

* Fix php_apache_get_version prototype

Avoids an error with -Werror=strict-prototypes when building the
Apache SAPI.

* Fix -Werror=stringop-truncation in pdo_raise_impl_error

* Note pdo_error_type BC break
This commit is contained in:
Levi Morrison 2022-05-18 08:30:59 -06:00 committed by GitHub
parent 33fa80cc97
commit 282655083e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 4 deletions

View file

@ -317,7 +317,7 @@ PHP_FUNCTION(apache_getenv)
}
/* }}} */
static char *php_apache_get_version()
static char *php_apache_get_version(void)
{
#if MODULE_MAGIC_NUMBER_MAJOR >= 20060905
return (char *) ap_get_server_banner();