Branch: refs/heads/yves/fix_build_warnings
Home: https://github.com/Perl/perl5
Commit: 157ab503d1fe55b757d6c983de0110f9f140d48e
https://github.com/Perl/perl5/commit/157ab503d1fe55b757d6c983de0110f9f140d48e
Author: Yves Orton <[email protected]>
Date: 2023-02-25 (Sat, 25 Feb 2023)
Changed paths:
M class.c
Log Message:
-----------
class.c - silence build warning under clang
Use SSize_t for iterator as it matches the type being compared against.
Silences the following warning:
class.c:555:26: warning: comparison of integers of different signs:
'U32' (aka 'unsigned long') and 'long' [-Wsign-compare]
for(U32 i = 0; i <= AvFILL(superaux->xhv_class_adjust_blocks); i++)
~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
class.c:699:40: warning: comparison of integers of different signs:
'U32' (aka 'unsigned long') and 'ssize_t' (aka 'int') [-Wsign-compare]
for(U32 i = 0; fieldnames && i <= PadnamelistMAX(fieldnames); i++) {
~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
Commit: f1373b9a29cfa754f60d1402acbe07124d720201
https://github.com/Perl/perl5/commit/f1373b9a29cfa754f60d1402acbe07124d720201
Author: Yves Orton <[email protected]>
Date: 2023-02-25 (Sat, 25 Feb 2023)
Changed paths:
M dump.c
Log Message:
-----------
dump.c - cast sprintf args properly to silence build warning under clang
Silence the following warnings:
dump.c:2688:25: warning: format specifies type 'long long'
but the argument has type 'ssize_t' (aka 'int') [-Wformat]
r->offs[n].start, r->offs[n].end,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./embed.h:831:72: note: expanded from macro 'sv_catpvf'
# define sv_catpvf(a,...) Perl_sv_catpvf(aTHX_
a,__VA_ARGS__)
^~~~~~~~~~~
dump.c:2688:43: warning: format specifies type 'long long'
but the argument has type 'ssize_t' (aka 'int') [-Wformat]
r->offs[n].start, r->offs[n].end,
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
./embed.h:831:72: note: expanded from macro 'sv_catpvf'
# define sv_catpvf(a,...) Perl_sv_catpvf(aTHX_
a,__VA_ARGS__)
^~~~~~~~~~~
2 warnings generated.
Commit: 0ae464fe4bd01c1d87340498a515f4cb4454792d
https://github.com/Perl/perl5/commit/0ae464fe4bd01c1d87340498a515f4cb4454792d
Author: Yves Orton <[email protected]>
Date: 2023-02-25 (Sat, 25 Feb 2023)
Changed paths:
M regcomp.c
Log Message:
-----------
regcomp.c - silence build warning under 32-bit build with clang
Silences the following build warning:
regcomp.c:2285:28: warning: format specifies type 'int' but the argument
has type 'I32' (aka 'long') [-Wformat]
parno, RExC_parno_to_logical[parno],
RExC_parno_to_logical_next[parno]);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
./regcomp_internal.h:212:37: note: expanded from macro
'RExC_parno_to_logical'
#define RExC_parno_to_logical (pRExC_state->parno_to_logical)
^
regcomp.c:2285:58: warning: format specifies type 'int' but the argument
has type 'I32' (aka 'long') [-Wformat]
parno, RExC_parno_to_logical[parno],
RExC_parno_to_logical_next[parno]);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./regcomp_internal.h:213:37: note: expanded from macro
'RExC_parno_to_logical_next'
#define RExC_parno_to_logical_next (pRExC_state->parno_to_logical_next)
^
2 warnings generated.
Commit: 8a24026f2c9ed043ade6037fca2660863250e42d
https://github.com/Perl/perl5/commit/8a24026f2c9ed043ade6037fca2660863250e42d
Author: Yves Orton <[email protected]>
Date: 2023-02-25 (Sat, 25 Feb 2023)
Changed paths:
M ext/XS-APItest/APItest.pm
M ext/XS-APItest/APItest.xs
Log Message:
-----------
APITest.xs - silence build warning under 32 bit clang
Silence build warning with 32 bit build under clang. Also bump
version.
APItest.xs:7614:24: warning: format specifies type 'unsigned int'
but the argument has type 'U32' (aka 'unsigned long') [-Wformat]
i, hash32, vectors_32[i]);
^~~~~~
../../fakesdio.h:64:50: note: expanded from macro 'printf'
#define printf(fmt,args...) PerlIO_stdoutf(fmt,##args)
~~~ ^~~~
APItest.xs:7614:32: warning: format specifies type 'unsigned int'
but the argument has type 'U32' (aka 'unsigned long') [-Wformat]
i, hash32, vectors_32[i]);
^~~~~~~~~~~~~
../../fakesdio.h:64:50: note: expanded from macro 'printf'
#define printf(fmt,args...) PerlIO_stdoutf(fmt,##args)
~~~ ^~~~
APItest.xs:7835:24: warning: format specifies type 'unsigned int'
but the argument has type 'U32' (aka 'unsigned long') [-Wformat]
i, hash32, vectors_32[i]);
^~~~~~
../../fakesdio.h:64:50: note: expanded from macro 'printf'
#define printf(fmt,args...) PerlIO_stdoutf(fmt,##args)
~~~ ^~~~
APItest.xs:7835:32: warning: format specifies type 'unsigned int'
but the argument has type 'U32' (aka 'unsigned long') [-Wformat]
i, hash32, vectors_32[i]);
^~~~~~~~~~~~~
../../fakesdio.h:64:50: note: expanded from macro 'printf'
#define printf(fmt,args...) PerlIO_stdoutf(fmt,##args)
~~~ ^~~~
4 warnings generated.
Commit: 8bb21911f885b197b0d2b3ec0ac8f5a4084bafac
https://github.com/Perl/perl5/commit/8bb21911f885b197b0d2b3ec0ac8f5a4084bafac
Author: Yves Orton <[email protected]>
Date: 2023-02-25 (Sat, 25 Feb 2023)
Changed paths:
M dist/Time-HiRes/HiRes.pm
M dist/Time-HiRes/HiRes.xs
Log Message:
-----------
dist/Time-HiRes - silence ppport warning
Silences the following warning:
In file included from HiRes.xs:23:
./ppport.h:14832:1: warning: unused function 'DPPP_my_ck_warner'
[-Wunused-function]
DPPP_(my_ck_warner)(pTHX_ U32 err, const char *pat, ...)
^
./ppport.h:11568:21: note: expanded from macro 'DPPP_'
#define DPPP_(name) DPPP_CAT2(DPPP_NAMESPACE, name)
^
./ppport.h:11567:24: note: expanded from macro 'DPPP_CAT2'
#define DPPP_CAT2(x,y) CAT2(x,y)
^
../../config.h:1387:19: note: expanded from macro 'CAT2'
#define CAT2(a,b) PeRl_CaTiFy(a,b)
^
../../config.h:1385:27: note: expanded from macro 'PeRl_CaTiFy'
#define PeRl_CaTiFy(a, b) a ## b
^
<scratch space>:34:1: note: expanded from here
DPPP_my_ck_warner
^
1 warning generated.
Compare: https://github.com/Perl/perl5/compare/93df080b4670...8bb21911f885