summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2016-03-15 13:10:56 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2016-03-15 13:11:22 -0700
commit488c58283af7ec4e49db6b3f32362c1e323606ce (patch)
treeaa8c96357ac65c5504c7c6e59f96b86d9e2b2db2 /lib
parentd8f02239ee99c622831660cde753d2afc9ebf894 (diff)
downloadgnulib-488c58283af7ec4e49db6b3f32362c1e323606ce.tar.gz
time_rz: port to clang -Wunused-const-variable
* lib/time_rz.c (TZ): Remove. All uses removed.
Diffstat (limited to 'lib')
-rw-r--r--lib/time_rz.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/time_rz.c b/lib/time_rz.c
index 56f3220ce9..10a006ca2e 100644
--- a/lib/time_rz.c
+++ b/lib/time_rz.c
@@ -47,8 +47,6 @@ enum { DEFAULT_MXFAST = 64 * sizeof (size_t) / 4 };
used. */
enum { ABBR_SIZE_MIN = DEFAULT_MXFAST - offsetof (struct tm_zone, abbrs) };
-static char const TZ[] = "TZ";
-
/* Magic cookie timezone_t value, for local time. It differs from
NULL and from all other timezone_t values. Only the address
matters; the pointer is never dereferenced. */
@@ -205,7 +203,7 @@ tzfree (timezone_t tz)
static char *
getenv_TZ (void)
{
- return getenv (TZ);
+ return getenv ("TZ");
}
#endif
@@ -213,7 +211,7 @@ getenv_TZ (void)
static int
setenv_TZ (char const *tz)
{
- return tz ? setenv (TZ, tz, 1) : unsetenv (TZ);
+ return tz ? setenv ("TZ", tz, 1) : unsetenv ("TZ");
}
#endif