Skip to content

Commit de32b05

Browse files
committed
bugfix: fixed errors and warnings with C compilers without variadic macro support.
1 parent 3d435fc commit de32b05

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/ddebug.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919

2020
#include <stdarg.h>
2121

22-
static void dd(const char* fmt, ...) {
22+
static ngx_inline void
23+
dd(const char* fmt, ...) {
2324
}
2425

2526
# endif
@@ -34,7 +35,8 @@ static void dd(const char* fmt, ...) {
3435

3536
#include <stdarg.h>
3637

37-
static void dd(const char* fmt, ...) {
38+
static ngx_inline void
39+
dd(const char* fmt, ...) {
3840
}
3941

4042
# endif
@@ -69,4 +71,3 @@ static void dd(const char* fmt, ...) {
6971
#endif
7072

7173
#endif /* DDEBUG_H */
72-

0 commit comments

Comments
 (0)