Branch: refs/heads/yves/fix_build_warnings
  Home:   https://github.com/Perl/perl5
  Commit: aafd721d4df47cc036874a3bda18967a9d549334
      
https://github.com/Perl/perl5/commit/aafd721d4df47cc036874a3bda18967a9d549334
  Author: Yves Orton <[email protected]>
  Date:   2023-02-25 (Sat, 25 Feb 2023)

  Changed paths:
    M regcomp.c

  Log Message:
  -----------
  regcomp.c - remove unused debug logic that warns under clang.

And by removing it we silence 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: 3f8a93b5c41b551173b9107a324d114fdfc2dd21
      
https://github.com/Perl/perl5/commit/3f8a93b5c41b551173b9107a324d114fdfc2dd21
  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: d3e2cd2d47d50bf83806274e60dae62834e1afa6
      
https://github.com/Perl/perl5/commit/d3e2cd2d47d50bf83806274e60dae62834e1afa6
  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/8bb21911f885...d3e2cd2d47d5

Reply via email to