stop warning when compiling with no-comp

This commit is contained in:
Dr. Stephen Henson
2012-12-30 01:12:19 +00:00
parent 8c3f868983
commit 2e00f46b51
2 changed files with 7 additions and 2 deletions

View File

@@ -595,8 +595,8 @@ int main(int argc, char *argv[])
int no_psk = 0;
int print_time = 0;
clock_t s_time = 0, c_time = 0;
int comp = 0;
#ifndef OPENSSL_NO_COMP
int comp = 0;
COMP_METHOD *cm = NULL;
STACK_OF(SSL_COMP) *ssl_comp_methods = NULL;
#endif
@@ -795,6 +795,7 @@ int main(int argc, char *argv[])
{
print_time = 1;
}
#ifndef OPENSSL_NO_COMP
else if (strcmp(*argv,"-zlib") == 0)
{
comp = COMP_ZLIB;
@@ -803,6 +804,7 @@ int main(int argc, char *argv[])
{
comp = COMP_RLE;
}
#endif
else if (strcmp(*argv,"-named_curve") == 0)
{
if (--argc < 1) goto bad;