Avoid possible spurious warning with gcc -Os
Outline:
if( condition )
foo = value;
/* stuff that does not change condition */
if( condition )
/* use foo */
else
/* don't use foo */
For some reason, it appears to only kick in with -Os with gcc 4.9.3
diff --git a/library/ssl_srv.c b/library/ssl_srv.c
index ec80646..bb66352 100644
--- a/library/ssl_srv.c
+++ b/library/ssl_srv.c
@@ -1677,17 +1677,14 @@
SSL_DEBUG_MSG( 2, ( "cookie verification skipped" ) );
}
- }
-#endif /* POLARSSL_SSL_PROTO_DTLS */
/*
* Check the ciphersuitelist length (will be parsed later)
*/
-#if defined(POLARSSL_SSL_PROTO_DTLS)
- if( ssl->transport == SSL_TRANSPORT_DATAGRAM )
ciph_offset = cookie_offset + 1 + cookie_len;
+ }
else
-#endif
+#endif /* POLARSSL_SSL_PROTO_DTLS */
ciph_offset = 35 + sess_len;
ciph_len = ( buf[ciph_offset + 0] << 8 )