@@ -537,9 +537,9 @@ static void log_message (const char *fmt, ...)
537537#define DEBUG_MESSAGE (fmt , ...)
538538#endif
539539
540- static int lsapi_activate_user_ini ();
540+ static int lsapi_activate_user_ini (void );
541541
542- static int sapi_lsapi_activate ()
542+ static int sapi_lsapi_activate (void )
543543{
544544 char * path , * server_name ;
545545 size_t path_len , server_name_len ;
@@ -677,10 +677,9 @@ static int do_clean_shutdown = 1;
677677static int clean_onexit = 1 ;
678678
679679
680- static void lsapi_clean_shutdown ()
680+ static void lsapi_clean_shutdown (void )
681681{
682682 struct sigaction act ;
683- int sa_rc ;
684683 struct itimerval tmv ;
685684#if PHP_MAJOR_VERSION >= 7
686685 zend_string * key ;
@@ -689,15 +688,14 @@ static void lsapi_clean_shutdown()
689688 sigemptyset (& act .sa_mask );
690689 act .sa_flags = 0 ;
691690 act .sa_handler = lsapi_sigsegv ;
692- sa_rc = sigaction (SIGINT , & act , NULL );
693- sa_rc = sigaction (SIGQUIT , & act , NULL );
694- sa_rc = sigaction (SIGILL , & act , NULL );
695- sa_rc = sigaction (SIGABRT , & act , NULL );
696- sa_rc = sigaction (SIGBUS , & act , NULL );
697- sa_rc = sigaction (SIGSEGV , & act , NULL );
698- sa_rc = sigaction (SIGTERM , & act , NULL );
699-
700- sa_rc = sigaction (SIGPROF , & act , NULL );
691+ (void )sigaction (SIGINT , & act , NULL );
692+ (void )sigaction (SIGQUIT , & act , NULL );
693+ (void )sigaction (SIGILL , & act , NULL );
694+ (void )sigaction (SIGABRT , & act , NULL );
695+ (void )sigaction (SIGBUS , & act , NULL );
696+ (void )sigaction (SIGSEGV , & act , NULL );
697+ (void )sigaction (SIGTERM , & act , NULL );
698+ (void )sigaction (SIGPROF , & act , NULL );
701699 memset (& tmv , 0 , sizeof (struct itimerval ));
702700 tmv .it_value .tv_sec = 0 ;
703701 tmv .it_value .tv_usec = 100000 ;
@@ -738,11 +736,9 @@ static void lsapi_atexit(void)
738736 }
739737}
740738
741-
742739static int lsapi_module_main (int show_source )
743740{
744741 struct sigaction act ;
745- int sa_rc ;
746742 if (php_request_startup () == FAILURE ) {
747743 return -1 ;
748744 }
@@ -751,13 +747,13 @@ static int lsapi_module_main(int show_source)
751747 sigemptyset (& act .sa_mask );
752748 act .sa_flags = SA_NODEFER ;
753749 act .sa_handler = lsapi_sigterm ;
754- sa_rc = sigaction ( SIGINT , & act , NULL );
755- sa_rc = sigaction ( SIGQUIT , & act , NULL );
756- sa_rc = sigaction ( SIGILL , & act , NULL );
757- sa_rc = sigaction ( SIGABRT , & act , NULL );
758- sa_rc = sigaction ( SIGBUS , & act , NULL );
759- sa_rc = sigaction ( SIGSEGV , & act , NULL );
760- sa_rc = sigaction ( SIGTERM , & act , NULL );
750+ ( void ) sigaction ( SIGINT , & act , NULL );
751+ ( void ) sigaction ( SIGQUIT , & act , NULL );
752+ ( void ) sigaction ( SIGILL , & act , NULL );
753+ ( void ) sigaction ( SIGABRT , & act , NULL );
754+ ( void ) sigaction ( SIGBUS , & act , NULL );
755+ ( void ) sigaction ( SIGSEGV , & act , NULL );
756+ ( void ) sigaction ( SIGTERM , & act , NULL );
761757
762758 clean_onexit = 0 ;
763759 }
@@ -834,7 +830,7 @@ static void user_config_cache_entry_dtor(zval *el)
834830 free (entry );
835831}
836832
837- static void user_config_cache_init ()
833+ static void user_config_cache_init (void )
838834{
839835 zend_hash_init (& user_config_cache , 0 , NULL , user_config_cache_entry_dtor , 1 );
840836}
@@ -1101,7 +1097,7 @@ static int lsapi_activate_user_ini( void )
11011097}
11021098
11031099
1104- static void override_ini ()
1100+ static void override_ini (void )
11051101{
11061102
11071103 LSAPI_ForeachSpecialEnv ( alter_ini , NULL );
0 commit comments