Windows build failure, variable set but not used

With the introduction of using -Werror=unused-but-set-variable, a
variable in strptime.c was defined but no used.

Moved to be included in #ifdef _NL_CURRENT as that is where it is used.
This commit is contained in:
Robert Fewell 2023-02-21 10:11:25 +00:00
parent d4820a25a4
commit d6514a47f2

View File

@ -436,14 +436,13 @@ int era_cnt;
int have_mon, have_mday;
#ifdef _NL_CURRENT
size_t num_eras;
#endif
struct era_entry *era;
era = NULL;
#endif
have_I = is_pm = 0;
century = -1;
want_century = 0;
want_era = 0;
era = NULL;
have_wday = want_xday = have_yday = have_mon = have_mday = 0;