[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] stat-time: avoid unused-parameter warning
From: |
Bernhard Voelker |
Subject: |
[PATCH] stat-time: avoid unused-parameter warning |
Date: |
Fri, 29 Dec 2017 18:33:51 +0100 |
GCC-7.2.1 complains:
../gl/lib/stat-time.h:215:47: error: unused parameter 'st' \
[-Werror=unused-parameter]
stat_time_normalize (int result, struct stat *st)
^~
* lib/stat-time.h (stat_time_normalize): Silence compiler regarding
the unused parameter ST.
---
ChangeLog | 11 +++++++++++
lib/stat-time.h | 2 ++
2 files changed, 13 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 213a45362..94dd234ad 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2017-12-29 Bernhard Voelker <address@hidden>
+
+ stat-time: avoid unused-parameter warning
+ GCC-7.2.1 complains:
+ ../gl/lib/stat-time.h:215:47: error: unused parameter 'st' \
+ [-Werror=unused-parameter]
+ stat_time_normalize (int result, struct stat *st)
+ ^~
+ * lib/stat-time.h (stat_time_normalize): Silence compiler regarding
+ the unused parameter ST.
+
2017-12-29 Samuel Thibault <address@hidden>
Add cross-compilation results for GNU/Hurd.
diff --git a/lib/stat-time.h b/lib/stat-time.h
index 1cf821992..48ed9204a 100644
--- a/lib/stat-time.h
+++ b/lib/stat-time.h
@@ -243,6 +243,8 @@ stat_time_normalize (int result, struct stat *st)
}
}
}
+#else
+ (void) st;
#endif
return result;
}
--
2.15.1
- [PATCH] stat-time: avoid unused-parameter warning,
Bernhard Voelker <=