- Fixed warning for t if no debugging defined
diff --git a/library/ssl_cli.c b/library/ssl_cli.c
index 08aaf80..95ceea6 100644
--- a/library/ssl_cli.c
+++ b/library/ssl_cli.c
@@ -178,7 +178,9 @@
static int ssl_parse_server_hello( ssl_context *ssl )
{
+#if defined(POLARSSL_DEBUG_MSG) && defined(POLARSSL_DEBUG_C)
time_t t;
+#endif
int ret, i;
size_t n;
int ext_len;
@@ -226,10 +228,12 @@
ssl->minor_ver = buf[5];
+#if defined(POLARSSL_DEBUG_MSG) && defined(POLARSSL_DEBUG_C)
t = ( (time_t) buf[6] << 24 )
| ( (time_t) buf[7] << 16 )
| ( (time_t) buf[8] << 8 )
| ( (time_t) buf[9] );
+#endif
memcpy( ssl->randbytes + 32, buf + 6, 32 );