Skip to content

Commit 2b84a97

Browse files
committed
Fix [-Wstrict-prototypes] in Session extension
1 parent 8b01911 commit 2b84a97

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
@@ -504,7 +504,7 @@ static void php_session_save_current_state(int write) /* {{{ */
504504
}
505505
/* }}} */
506506

507-
static void php_session_normalize_vars() /* {{{ */
507+
static void php_session_normalize_vars(void) /* {{{ */
508508
{
509509
PS_ENCODE_VARS;
510510

@@ -1914,7 +1914,7 @@ PHP_FUNCTION(session_module_name)
19141914
}
19151915
/* }}} */
19161916

1917-
static int save_handler_check_session() {
1917+
static int save_handler_check_session(void) {
19181918
if (PS(session_status) == php_session_active) {
19191919
php_error_docref(NULL, E_WARNING, "Cannot change save handler when session is active");
19201920
return FAILURE;

0 commit comments

Comments
 (0)