Welcome! Log In Create A New Profile

Advanced

[nginx] Fix build with -Wmissing-prototypes.

Ruslan Ermilov
March 19, 2016 12:30AM
details: http://hg.nginx.org/nginx/rev/0ff7eff48c7e
branches:
changeset: 6446:0ff7eff48c7e
user: Piotr Sikora <piotrsikora@google.com>
date: Fri Mar 18 16:38:08 2016 -0700
description:
Fix build with -Wmissing-prototypes.

Broken in 5eb4d7541107 (1.9.6), fix somehow missed in 3600bbfb43e3.

Signed-off-by: Piotr Sikora <piotrsikora@google.com>

diffstat:

src/core/nginx.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r c9d680b00744 -r 0ff7eff48c7e src/core/nginx.c
--- a/src/core/nginx.c Fri Mar 18 15:08:21 2016 +0300
+++ b/src/core/nginx.c Fri Mar 18 16:38:08 2016 -0700
@@ -10,7 +10,7 @@
#include <nginx.h>


-static void ngx_show_version_info();
+static void ngx_show_version_info(void);
static ngx_int_t ngx_add_inherited_sockets(ngx_cycle_t *cycle);
static ngx_int_t ngx_get_options(int argc, char *const *argv);
static ngx_int_t ngx_process_options(ngx_cycle_t *cycle);
@@ -372,7 +372,7 @@ main(int argc, char *const *argv)


static void
-ngx_show_version_info()
+ngx_show_version_info(void)
{
ngx_write_stderr("nginx version: " NGINX_VER_BUILD NGX_LINEFEED);


_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Fix build with -Wmissing-prototypes.

Ruslan Ermilov 362 March 19, 2016 12:30AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 170
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready