mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-29 10:24:18 +01:00
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
This commit is contained in:
parent
b6b16bddc3
commit
a06d7fe3fe
@ -1677,17 +1677,14 @@ read_record_header:
|
|||||||
|
|
||||||
SSL_DEBUG_MSG( 2, ( "cookie verification skipped" ) );
|
SSL_DEBUG_MSG( 2, ( "cookie verification skipped" ) );
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#endif /* POLARSSL_SSL_PROTO_DTLS */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Check the ciphersuitelist length (will be parsed later)
|
* 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;
|
ciph_offset = cookie_offset + 1 + cookie_len;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif /* POLARSSL_SSL_PROTO_DTLS */
|
||||||
ciph_offset = 35 + sess_len;
|
ciph_offset = 35 + sess_len;
|
||||||
|
|
||||||
ciph_len = ( buf[ciph_offset + 0] << 8 )
|
ciph_len = ( buf[ciph_offset + 0] << 8 )
|
||||||
|
Loading…
Reference in New Issue
Block a user