2016-03-15 Paul Eggert <eggert@cs.ucla.edu>
+ time_rz: port to clang -Wunused-const-variable
+ * lib/time_rz.c (TZ): Remove. All uses removed.
+
std-gnu11: improve clang support
* m4/std-gnu11.m4: Sync with autoconf, incorporating:
2016-03-15 Also try clang
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. */
static char *
getenv_TZ (void)
{
- return getenv (TZ);
+ return getenv ("TZ");
}
#endif
static int
setenv_TZ (char const *tz)
{
- return tz ? setenv (TZ, tz, 1) : unsetenv (TZ);
+ return tz ? setenv ("TZ", tz, 1) : unsetenv ("TZ");
}
#endif