Skip to content

Commit

Permalink
Windows build failure, variable set but not used
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Bob-IT committed Feb 21, 2023
1 parent d4820a2 commit d6514a4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions borrowed/libc/strptime.c
Expand Up @@ -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;

Expand Down

0 comments on commit d6514a4

Please sign in to comment.