[syslinux:master] core/fs/pxe/pxe.c: remove variables set but not used

syslinux-bot for H. Peter Anvin hpa at zytor.com
Wed Mar 16 13:19:03 PDT 2011


Commit-ID:  1038e87c4f1031955f6c0170a65108202c1d3409
Gitweb:     http://syslinux.zytor.com/commit/1038e87c4f1031955f6c0170a65108202c1d3409
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Wed, 16 Mar 2011 13:10:36 -0700
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Wed, 16 Mar 2011 13:10:36 -0700

core/fs/pxe/pxe.c: remove variables set but not used

gcc 4.6 warns on variables set but not used, so remove them.

Signed-off-by: H. Peter Anvin <hpa at zytor.com>


---
 core/fs/pxe/pxe.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/core/fs/pxe/pxe.c b/core/fs/pxe/pxe.c
index a1e4097..aef2e7e 100644
--- a/core/fs/pxe/pxe.c
+++ b/core/fs/pxe/pxe.c
@@ -332,6 +332,7 @@ static void ack_packet(struct inode *inode, uint16_t ack_num)
     udp_write.buffer_size = 4;
 
     err = pxe_call(PXENV_UDP_WRITE, &udp_write);
+    (void)err;
 #if 0
     printf("sent %s\n", err ? "FAILED" : "OK");
 #endif



More information about the Syslinux-commits mailing list