summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2007-11-22 09:24:17 +0100
committerJim Meyering <meyering@redhat.com>2007-11-22 09:24:17 +0100
commit849c3830dc9b89a698a279a75c2bfa1e4f985fe4 (patch)
tree42cb98cfe3dcc6cb4051c5eb677377e74cba1d92
parent7794100ef88f8fbf40309604c7f22a58dbd2a37d (diff)
downloadcoreutils-849c3830dc9b89a698a279a75c2bfa1e4f985fe4.tar.xz
Quiet warnings about unused parameters.
* src/copy.c (set_author) [!HAVE_STRUCT_STAT_ST_AUTHOR]: "Use" each of the parameters.
-rw-r--r--ChangeLog4
-rw-r--r--src/copy.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 56de1ec3d..3d682f910 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2007-11-22 Jim Meyering <meyering@redhat.com>
+ Quiet warnings about unused parameters.
+ * src/copy.c (set_author) [!HAVE_STRUCT_STAT_ST_AUTHOR]:
+ "Use" each of the parameters.
+
* GNUmakefile: Correct the "rerunning..." diagnostic.
Make it easier to diagnose PATH-induced "make distcheck" failures.
diff --git a/src/copy.c b/src/copy.c
index 31e29b1bf..280fbf8d9 100644
--- a/src/copy.c
+++ b/src/copy.c
@@ -227,6 +227,10 @@ set_author (const char *dst_name, int dest_desc, const struct stat *src_sb)
quote (dst_name));
mach_port_deallocate (mach_task_self (), file);
}
+#else
+ (void) dst_name;
+ (void) dest_desc;
+ (void) src_sb;
#endif
}