* src/getopt.c (_getopt_initialize): Use statements without any effect.
* src/posixos.c (set_blocking): Declare parameters with UNUSED.
* src/remake.c (f_mtime) [__EMX__]: Declare adjustment with UNUSED.
---
src/getopt.c | 3 +++
src/posixos.c | 2 +-
src/remake.c | 1 +
3 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/getopt.c b/src/getopt.c
index 9f31a70d..fc7cead4 100644
--- a/src/getopt.c
+++ b/src/getopt.c
@@ -436,6 +436,9 @@ _getopt_initialize (int argc, char *const *argv, const char
*optstring)
nonoption_flags_len = 0;
#endif
+ /* Make compiler happy. */
+ (void)argc; (void)argv;
+
return optstring;
}
diff --git a/src/posixos.c b/src/posixos.c
index 44aeb346..0a737521 100644
--- a/src/posixos.c
+++ b/src/posixos.c
@@ -118,7 +118,7 @@ make_job_rfd ()
}
static void
-set_blocking (int fd, int blocking)
+set_blocking (int fd UNUSED, int blocking UNUSED)
{
/* If we're not using pselect() don't change the blocking. */
#ifdef HAVE_PSELECT
diff --git a/src/remake.c b/src/remake.c
index 4ce3d2a3..2851c773 100644
--- a/src/remake.c
+++ b/src/remake.c
@@ -1470,6 +1470,7 @@ f_mtime (struct file *file, int search)
/* FAT filesystems round time to the nearest even second!
Allow for any file (NTFS or FAT) to perhaps suffer from this
brain damage. */
+ UNUSED
FILE_TIMESTAMP adjustment = (((FILE_TIMESTAMP_S (adjusted_mtime) & 1) == 0
&& FILE_TIMESTAMP_NS (adjusted_mtime) == 0)
? (FILE_TIMESTAMP) 1 << FILE_TIMESTAMP_LO_BITS
--
2.30.0