[git commit] The [-Wunused-but-set-variable] warnings

Denys Vlasenko vda.linux at googlemail.com
Mon May 16 01:53:43 UTC 2011


commit: http://git.busybox.net/busybox/commit/?id=662972a77acdd10357f6cbdba228d707bbdc02ed
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

networking/ntpd.c:1748:19: warning: variable 'version' set but not used

Signed-off-by: Cristian Ionescu-Idbohrn <cii at axis.com>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 networking/ntpd.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/networking/ntpd.c b/networking/ntpd.c
index e27dbaa..165673a 100644
--- a/networking/ntpd.c
+++ b/networking/ntpd.c
@@ -1745,7 +1745,7 @@ static NOINLINE void
 recv_and_process_client_pkt(void /*int fd*/)
 {
 	ssize_t          size;
-	uint8_t          version;
+	//uint8_t          version;
 	len_and_sockaddr *to;
 	struct sockaddr  *from;
 	msg_t            msg;
@@ -1793,7 +1793,7 @@ recv_and_process_client_pkt(void /*int fd*/)
 	msg.m_rootdelay = d_to_sfp(G.rootdelay);
 //simple code does not do this, fix simple code!
 	msg.m_rootdisp = d_to_sfp(G.rootdisp);
-	version = (query_status & VERSION_MASK); /* ... >> VERSION_SHIFT - done below instead */
+	//version = (query_status & VERSION_MASK); /* ... >> VERSION_SHIFT - done below instead */
 	msg.m_refid = G.refid; // (version > (3 << VERSION_SHIFT)) ? G.refid : G.refid3;
 
 	/* We reply from the local address packet was sent to,
-- 
1.7.3.4



More information about the busybox-cvs mailing list