[syslinux:master] com32/rosh/rosh.h: remove variables set but not used

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


Commit-ID:  69bfb639e482436c268ebbe47dcb29a6a9b8fdfb
Gitweb:     http://syslinux.zytor.com/commit/69bfb639e482436c268ebbe47dcb29a6a9b8fdfb
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

com32/rosh/rosh.h: 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>


---
 com32/rosh/rosh.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/com32/rosh/rosh.h b/com32/rosh/rosh.h
index 87c15b7..415a9fb 100644
--- a/com32/rosh/rosh.h
+++ b/com32/rosh/rosh.h
@@ -95,6 +95,7 @@ int stat(const char *pathname, struct stat *buf)
 	if (fd != -1) {
 	    ROSH_DEBUG2_STAT("(%d)stat:fstat() ", fd);
 	    status = fstat(fd, buf);
+	    (void)status;
 	    ROSH_DEBUG2_STAT("stat:close() ");
 	    close(fd);
 	    ret = 0;



More information about the Syslinux-commits mailing list