-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(log): support nginx built without variadic macros
Fixed the error below, caused by a different signature of `ngx_log_error_core` when neither `NGX_HAVE_C99_VARIADIC_MACROS` nor nor `NGX_HAVE_GCC_VARIADIC_MACROS` is detected. An example of affected configuration is MinGW with clang or gcc, where we skip most of the compiler feature checks. ``` error[E0061]: this function takes 5 arguments but 6 arguments were supplied --> examples\awssig.rs:312:9 | 312 | ngx_log_debug_http!(request, "headers {:?}", headers); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unexpected argument #6 of type `*const u8` | note: expected `*mut i8`, found `usize` ```
- Loading branch information
1 parent
7266aa8
commit 7635440
Showing
2 changed files
with
40 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters