Skip to content

Commit b3a677b

Browse files
committed
Fix [-Wstrict-prototypes] in Session extension
1 parent 72a45ec commit b3a677b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/session/session.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ static void php_session_save_current_state(int write) /* {{{ */
513513
}
514514
/* }}} */
515515

516-
static void php_session_normalize_vars() /* {{{ */
516+
static void php_session_normalize_vars(void) /* {{{ */
517517
{
518518
PS_ENCODE_VARS;
519519

@@ -1936,7 +1936,7 @@ PHP_FUNCTION(session_module_name)
19361936
}
19371937
/* }}} */
19381938

1939-
static int save_handler_check_session() {
1939+
static int save_handler_check_session(void) {
19401940
if (PS(session_status) == php_session_active) {
19411941
php_error_docref(NULL, E_WARNING, "Session save handler cannot be changed when a session is active");
19421942
return FAILURE;

0 commit comments

Comments
 (0)