[nasm:master] nasmlib: fix stub when os_fstat() is not defined
nasm-bot for H. Peter Anvin
hpa at zytor.com
Mon Nov 7 17:12:44 PST 2022
Commit-ID: b9646f9e393e706203e3847bb9d1f64a3079256a
Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=b9646f9e393e706203e3847bb9d1f64a3079256a
Author: H. Peter Anvin <hpa at zytor.com>
AuthorDate: Mon, 7 Nov 2022 16:56:56 -0800
Committer: H. Peter Anvin <hpa at zytor.com>
CommitDate: Mon, 7 Nov 2022 16:56:56 -0800
nasmlib: fix stub when os_fstat() is not defined
Use the correct variable to quiet unused variable warning in
os_fstat() stub.
Signed-off-by: H. Peter Anvin <hpa at zytor.com>
---
nasmlib/file.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/nasmlib/file.h b/nasmlib/file.h
index fc8f893d..140cde39 100644
--- a/nasmlib/file.h
+++ b/nasmlib/file.h
@@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------- *
*
- * Copyright 1996-2017 The NASM Authors - All Rights Reserved
+ * Copyright 1996-2022 The NASM Authors - All Rights Reserved
* See the file AUTHORS included with the NASM distribution for
* the specific copyright holders.
*
@@ -217,7 +217,7 @@ static inline int os_stat(os_filename osfname, os_struct_stat *st)
#ifndef os_fstat
static inline int os_fstat(int fd, os_struct_stat *st)
{
- (void)osfname;
+ (void)fd;
(void)st;
return -1;
}
More information about the Nasm-commits
mailing list