Welcome! Log In Create A New Profile

Advanced

Patch to fix compile errors for Windows CL compiler

Steve Stevenson
March 06, 2019 03:04PM
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@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, ':');
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Patch to fix compile errors for Windows CL compiler

Steve Stevenson 295 March 06, 2019 03:04PM

Re: Patch to fix compile errors for Windows CL compiler

Maxim Dounin 198 March 07, 2019 11:52AM



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

Online Users

Guests: 303
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