diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2023-03-22 10:45:02 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2023-03-22 10:45:02 -0700 |
commit | 5e7053a4c53488dc256c5026633c3f7e6f4f0afd (patch) | |
tree | 53dcdf340ffb54c5f8052b8b797fb535263b6898 | |
parent | c759f632702b2db2645f733e3574469fc20ee9c3 (diff) | |
download | tz-5e7053a4c53488dc256c5026633c3f7e6f4f0afd.tar.gz |
Pacify gcc -Wunused-parameter
* zdump.c (localtime_rz, tzfree): [! USE_LOCALTIME_RZ]:
Mark unused args with ATTRIBUTE_MAYBE_UNUSED. Problem found when
compiling with -DUSE_LTZ=0 on Fedora 37 with GCC 12.2.1 20221121
(Red Hat 12.2.1-4).
-rw-r--r-- | zdump.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -228,7 +228,7 @@ localtime_r(time_t *tp, struct tm *tmp) # undef localtime_rz # define localtime_rz zdump_localtime_rz static struct tm * -localtime_rz(timezone_t rz, time_t *tp, struct tm *tmp) +localtime_rz(ATTRIBUTE_MAYBE_UNUSED timezone_t rz, time_t *tp, struct tm *tmp) { return localtime_r(tp, tmp); } @@ -304,7 +304,7 @@ tzalloc(char const *val) } static void -tzfree(timezone_t initial_environ) +tzfree(ATTRIBUTE_MAYBE_UNUSED timezone_t initial_environ) { # if !HAVE_SETENV environ = initial_environ; |