summaryrefslogtreecommitdiff
path: root/main/main.c
diff options
context:
space:
mode:
authortwosee <twose@qq.com>2020-07-23 00:59:00 +0800
committertwosee <twose@qq.com>2020-07-23 00:59:00 +0800
commit6e92487f66794befb9d312a92e5b383dec012daf (patch)
tree363fe7cc4c967ddb538d88108fd17a72ccc90aac /main/main.c
parenta65ec4c2db58632b0d9b76516d0fe6d2b5fb4ba5 (diff)
downloadphp-git-6e92487f66794befb9d312a92e5b383dec012daf.tar.gz
Fix warnings of strict-prototypes
Closes GH-5887.
Diffstat (limited to 'main/main.c')
-rw-r--r--main/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/main.c b/main/main.c
index 9c0c8c11b9..cc0e764561 100644
--- a/main/main.c
+++ b/main/main.c
@@ -522,7 +522,7 @@ static PHP_INI_DISP(display_errors_mode)
}
/* }}} */
-PHPAPI const char *php_get_internal_encoding() {
+PHPAPI const char *php_get_internal_encoding(void) {
if (PG(internal_encoding) && PG(internal_encoding)[0]) {
return PG(internal_encoding);
} else if (SG(default_charset) && SG(default_charset)[0]) {
@@ -531,7 +531,7 @@ PHPAPI const char *php_get_internal_encoding() {
return "UTF-8";
}
-PHPAPI const char *php_get_input_encoding() {
+PHPAPI const char *php_get_input_encoding(void) {
if (PG(input_encoding) && PG(input_encoding)[0]) {
return PG(input_encoding);
} else if (SG(default_charset) && SG(default_charset)[0]) {
@@ -540,7 +540,7 @@ PHPAPI const char *php_get_input_encoding() {
return "UTF-8";
}
-PHPAPI const char *php_get_output_encoding() {
+PHPAPI const char *php_get_output_encoding(void) {
if (PG(output_encoding) && PG(output_encoding)[0]) {
return PG(output_encoding);
} else if (SG(default_charset) && SG(default_charset)[0]) {