Lauri Tirkkonen
2017-07-03 13:09:38 UTC
Found this while attempting to port LibreSSL 2.5.4 to another OS whose
build happens to use -Werror=unused-but-set-variable.
Index: s3_lib.c
===================================================================
RCS file: /cvs/src/lib/libssl/s3_lib.c,v
retrieving revision 1.144
diff -u -p -r1.144 s3_lib.c
--- s3_lib.c 7 May 2017 21:05:05 -0000 1.144
+++ s3_lib.c 3 Jul 2017 13:04:06 -0000
@@ -1513,10 +1513,10 @@ ssl3_handshake_msg_start(SSL *s, uint8_t
void
ssl3_handshake_msg_finish(SSL *s, unsigned int len)
{
- unsigned char *d, *p;
+ unsigned char *p;
uint8_t msg_type;
- d = p = (unsigned char *)s->internal->init_buf->data;
+ p = (unsigned char *)s->internal->init_buf->data;
/* Handshake message length. */
msg_type = *(p++);
build happens to use -Werror=unused-but-set-variable.
Index: s3_lib.c
===================================================================
RCS file: /cvs/src/lib/libssl/s3_lib.c,v
retrieving revision 1.144
diff -u -p -r1.144 s3_lib.c
--- s3_lib.c 7 May 2017 21:05:05 -0000 1.144
+++ s3_lib.c 3 Jul 2017 13:04:06 -0000
@@ -1513,10 +1513,10 @@ ssl3_handshake_msg_start(SSL *s, uint8_t
void
ssl3_handshake_msg_finish(SSL *s, unsigned int len)
{
- unsigned char *d, *p;
+ unsigned char *p;
uint8_t msg_type;
- d = p = (unsigned char *)s->internal->init_buf->data;
+ p = (unsigned char *)s->internal->init_buf->data;
/* Handshake message length. */
msg_type = *(p++);
--
Lauri Tirkkonen | lotheac @ IRCnet
Lauri Tirkkonen | lotheac @ IRCnet