mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-27 08:10:07 +08:00
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@zytor.com>
This commit is contained in:
parent
3f08242752
commit
b9646f9e39
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user