com32/rosh/rosh.h: remove variables set but not used
authorH. Peter Anvin <hpa@zytor.com>
Wed, 16 Mar 2011 20:10:36 +0000 (13:10 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 16 Mar 2011 20:10:36 +0000 (13:10 -0700)
gcc 4.6 warns on variables set but not used, so remove them.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32/rosh/rosh.h

index 87c15b7..415a9fb 100644 (file)
@@ -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;