From: Willy Tarreau Date: Fri, 27 Feb 2015 15:36:16 +0000 (+0100) Subject: BUILD/CLEANUP: ssl: avoid a warning due to mixed code and declaration X-Git-Tag: v1.6-dev1~126 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=622317d5e2e4704b6c180b4b16dc1bd5e06a1d6f;p=thirdparty%2Fhaproxy.git BUILD/CLEANUP: ssl: avoid a warning due to mixed code and declaration Actually it was caused by some dummy code meant to shut gcc up for an unused argument! --- diff --git a/src/ssl_sock.c b/src/ssl_sock.c index bcf70c9fb4..c9ace2d793 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c @@ -599,8 +599,8 @@ out: void ssl_sock_infocbk(const SSL *ssl, int where, int ret) { struct connection *conn = (struct connection *)SSL_get_app_data(ssl); - (void)ret; /* shut gcc stupid warning */ BIO *write_bio; + (void)ret; /* shut gcc stupid warning */ if (where & SSL_CB_HANDSHAKE_START) { /* Disable renegotiation (CVE-2009-3555) */