diff options
author | Elliott Hughes <enh@google.com> | 2023-12-25 17:40:30 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2023-12-27 06:14:14 -0600 |
commit | 00be08ddd52b53b2fd5332f396d97de9e61ec00c (patch) | |
tree | c082249b1b3e68d3d0f78542ee569994a54fd7c5 /toys/posix | |
parent | 9a83d36f5fbc2b7d0f974f8064197f2beee9270f (diff) | |
download | toybox-00be08ddd52b53b2fd5332f396d97de9e61ec00c.tar.gz |
date: silence gcc 13.2.
The code is correct (and doesn't seem to bother clang), but gcc can't
tell that we don't touch old_tz unless we've touched new_tz (which _is_
guaranteed to be initialized).
Diffstat (limited to 'toys/posix')
-rw-r--r-- | toys/posix/date.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/date.c b/toys/posix/date.c index 98038425..81e6b7e3 100644 --- a/toys/posix/date.c +++ b/toys/posix/date.c @@ -68,7 +68,7 @@ GLOBALS( // Handles any leading `TZ="blah" ` in the input string. static void parse_date(char *str, time_t *t) { - char *new_tz = NULL, *old_tz, *s = str; + char *new_tz = NULL, *old_tz QUIET, *s = str; if (!strncmp(str, "TZ=\"", 4)) { // Extract the time zone and skip any whitespace. |