Patch to fix compile errors for Windows CL compiler

Steve Stevenson sstevenson72 at gmail.com
Wed Mar 6 20:01:57 UTC 2019


We are seeing build issues due to the flag -WX Warnings as Errors.  Doing
the analysis we see redundant declarations of *pkey in
`src\event\ngx_event_openssl.c` .  I have made the changes and validated
the compile finishes properly.  See the below changeset patch.

# HG changeset patch
# User Steve Stevenson <sstevenson72 at gmail.com>
# Date 1551891444 21600
#      Wed Mar 06 10:57:24 2019 -0600
# Node ID 6f818d1f3dc795ce3b8a84d3a720a89fcba7a1e5
# Parent  49f9d2f7d8877cf7d86fc43c07ef86fc494175bc
removed redundant *pkey definition leading to Compile errors (Warnings as
Errors) in windows compilation

diff -r 49f9d2f7d887 -r 6f818d1f3dc7 src/event/ngx_event_openssl.c
--- a/src/event/ngx_event_openssl.c    Tue Mar 05 16:34:19 2019 +0300
+++ b/src/event/ngx_event_openssl.c    Wed Mar 06 10:57:24 2019 -0600
@@ -703,7 +703,6 @@

         u_char      *p, *last;
         ENGINE      *engine;
-        EVP_PKEY    *pkey;

         p = key->data + sizeof("engine:") - 1;
         last = (u_char *) ngx_strchr(p, ':');
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20190306/b1d6e77b/attachment.html>


More information about the nginx-devel mailing list