s_server: fix warnings unused-but-set-variable (no-dh)
authorCristian Stoica <cristian.stoica@nxp.com>
Wed, 29 Jun 2016 14:45:59 +0000 (17:45 +0300)
committerRichard Levitte <levitte@openssl.org>
Fri, 27 Apr 2018 04:00:10 +0000 (06:00 +0200)
commitb10794b5309a42bd3ea30d824ce1068e5189e66f
tree2cdf051204333d207f6332a4efd5ca42133079be
parent60ced074c48fa265b3eccf91a89dec374b4c7e49
s_server: fix warnings unused-but-set-variable (no-dh)

This patch fixes the following two warnings when OpenSSL is built with no-dh option:

s_server.c: In function 's_server_main':
s_server.c:1105:25: warning: variable 'no_dhe' set but not used [-Wunused-but-set-variable]
     int no_tmp_rsa = 0, no_dhe = 0, no_ecdhe = 0, nocert = 0;
                         ^
s_server.c:1101:11: warning: variable 'dhfile' set but not used [-Wunused-but-set-variable]
     char *dhfile = NULL;
           ^
CLA: trivial
Signed-off-by: Cristian Stoica <cristian.stoica@nxp.com>
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6087)
apps/s_server.c