Skip to content

Commit

Permalink
locale.c: Use void_ macro form when ignoring return
Browse files Browse the repository at this point in the history
The void_ form panics if unsuccessful; and here we are relying on it
being successful.
  • Loading branch information
khwilliamson committed May 12, 2023
1 parent 17432d3 commit ceed124
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions locale.c
Expand Up @@ -6036,12 +6036,9 @@ Perl_init_i18nl10n(pTHX_ int printwarn)
# ifdef USE_POSIX_2008_LOCALE

/* The stdized setlocales haven't affected the P2008 locales. Initialize
* them now, calculating LC_ALL only on the final go round, when all have
* been set. */
* them now */
for (i = 0; i < LC_ALL_INDEX_; i++) {
(void) bool_setlocale_2008_i(i, curlocales[i],
RECALCULATE_LC_ALL_ON_FINAL_INTERATION,
__LINE__);
void_setlocale_i(i, curlocales[i]);
}

# endif
Expand Down

0 comments on commit ceed124

Please sign in to comment.