diff options
author | Stefan Eissing <icing@apache.org> | 2023-04-27 09:14:36 +0200 |
---|---|---|
committer | Stefan Eissing <icing@apache.org> | 2023-04-27 09:14:36 +0200 |
commit | 4fc2fd7dd5603f02096750c33cd152ae2cd64e1e (patch) | |
tree | f81765f183aeb9eeab90e215f36b135e532de33c /server | |
parent | mod_status: Remove duplicate keys "BusyWorkers" and "IdleWorkers". (diff) | |
download | apache2-4fc2fd7dd5603f02096750c33cd152ae2cd64e1e.tar.xz apache2-4fc2fd7dd5603f02096750c33cd152ae2cd64e1e.zip |
Make sources build with latest clang version
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909450 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server')
-rw-r--r-- | server/buildmark.c | 2 | ||||
-rw-r--r-- | server/mpm/simple/simple_core.c | 2 | ||||
-rw-r--r-- | server/scoreboard.c | 4 | ||||
-rw-r--r-- | server/util.c | 2 | ||||
-rw-r--r-- | server/util_expr_parse.c | 2 |
5 files changed, 7 insertions, 5 deletions
diff --git a/server/buildmark.c b/server/buildmark.c index a9cd6844a9..36bd7134ea 100644 --- a/server/buildmark.c +++ b/server/buildmark.c @@ -23,7 +23,7 @@ static const char server_built[] = __DATE__ " " __TIME__; static const char server_built[] = "unknown"; #endif -AP_DECLARE(const char *) ap_get_server_built() +AP_DECLARE(const char *) ap_get_server_built(void) { return server_built; } diff --git a/server/mpm/simple/simple_core.c b/server/mpm/simple/simple_core.c index 24843be735..f4fd73ecac 100644 --- a/server/mpm/simple/simple_core.c +++ b/server/mpm/simple/simple_core.c @@ -28,7 +28,7 @@ static simple_core_t *g_simple_core; APLOG_USE_MODULE(mpm_simple); -simple_core_t *simple_core_get() +simple_core_t *simple_core_get(void) { return g_simple_core; } diff --git a/server/scoreboard.c b/server/scoreboard.c index 181477e357..a203e98f7b 100644 --- a/server/scoreboard.c +++ b/server/scoreboard.c @@ -654,7 +654,7 @@ AP_DECLARE(void) ap_time_process_request(ap_sb_handle_t *sbh, int status) } } -AP_DECLARE(int) ap_update_global_status() +AP_DECLARE(int) ap_update_global_status(void) { #ifdef HAVE_TIMES if (ap_scoreboard_image == NULL) { @@ -708,7 +708,7 @@ AP_DECLARE(process_score *) ap_get_scoreboard_process(int x) return &ap_scoreboard_image->parent[x]; } -AP_DECLARE(global_score *) ap_get_scoreboard_global() +AP_DECLARE(global_score *) ap_get_scoreboard_global(void) { return ap_scoreboard_image->global; } diff --git a/server/util.c b/server/util.c index 77c4095637..04f40a235a 100644 --- a/server/util.c +++ b/server/util.c @@ -3244,7 +3244,7 @@ AP_DECLARE(apr_status_t) ap_varbuf_regsub(struct ap_varbuf *vb, static const char * const oom_message = "[crit] Memory allocation failed, " "aborting process." APR_EOL_STR; -AP_DECLARE(void) ap_abort_on_oom() +AP_DECLARE(void) ap_abort_on_oom(void) { int written, count = strlen(oom_message); const char *buf = oom_message; diff --git a/server/util_expr_parse.c b/server/util_expr_parse.c index 041f5e77e7..8a0fbde523 100644 --- a/server/util_expr_parse.c +++ b/server/util_expr_parse.c @@ -1232,6 +1232,8 @@ YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default); yychar = YYEMPTY; /* Cause a token to be read. */ goto yysetstate; + /* TODO: comppiler warning that this is unused, and it seems to */ + (void)yynerrs; /*------------------------------------------------------------. | yynewstate -- Push a new state, which is found in yystate. | `------------------------------------------------------------*/ |