A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Perl/perl5/issues/19877 below:

new build-time warning · Issue #19877 · Perl/perl5 · GitHub

When I compile perl (on FreeBSD-12) in my customary manner (threaded) using either clang10 or clang12 as the C-compiler, the following warning is generated:

clang10 -c -DPERL_CORE -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -std=c99 -O2 -Wall -Werror=pointer-arith -Werror=vla -Wextra -Wno-long-long -Wno-declaration-after-statement -Wc++-compat -Wwrite-strings locale.c
locale.c:1232:1: warning: unused function 'S_setlocale_failure_panic_i' [-Wunused-function]
S_setlocale_failure_panic_i(pTHX_
^
1 warning generated.

The relevant part of the source code:

1231 STATIC void
1232 S_setlocale_failure_panic_i(pTHX_
1233                             const unsigned int cat_index,
1234                             const char * current,
1235                             const char * failed,
1236                             const line_t caller_0_line,
1237                             const line_t caller_1_line)
1238 {
...
1261 }

The above was added to the source code in this commit:

commit 94202fb81e1987cdd3326f647d94de8af15c63ad
Author:     Karl Williamson <khw@cpan.org>
AuthorDate: Thu Feb 11 06:16:53 2021 -0700
Commit:     Karl Williamson <khw@cpan.org>
CommitDate: Sun Jun 19 13:29:35 2022 -0600

    locale.c: Add panic check/message
    
    This panic is done when a setlocale unexpectedly fails.

@khwilliamson, can you take a look?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4