Skip to content

Commit

Permalink
bugfix: fixed errors and warnings with C compilers without variadic m…
Browse files Browse the repository at this point in the history
…acro support.
  • Loading branch information
agentzh committed Nov 1, 2015
1 parent a744def commit 473fc9d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/ddebug.h
@@ -1,11 +1,13 @@
#ifndef DDEBUG_H
#define DDEBUG_H


#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
#include <nginx.h>


#if defined(DDEBUG) && (DDEBUG)

# if (NGX_HAVE_VARIADIC_MACROS)
Expand All @@ -21,7 +23,8 @@

#include <stdarg.h>

static void dd(const char * fmt, ...) {
static ngx_inline void
dd(const char * fmt, ...) {
}

# endif
Expand All @@ -36,7 +39,7 @@ static void dd(const char * fmt, ...) {
# define dd_main_req_count 0
# endif

static void
static ngx_inline void
dd_enter_helper(ngx_http_request_t *r, const char *func)
{
ngx_http_posted_request_t *pr;
Expand Down Expand Up @@ -78,10 +81,12 @@ dd_enter_helper(ngx_http_request_t *r, const char *func)

#include <stdarg.h>

static void dd(const char * fmt, ...) {
static ngx_inline void
dd(const char * fmt, ...) {
}

static void dd_enter() {
static ngx_inline void
dd_enter() {
}

# endif
Expand Down

0 comments on commit 473fc9d

Please sign in to comment.