Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 2c96f462ceccb8446ed747749ad74ea339c8f547
      
https://github.com/Perl/perl5/commit/2c96f462ceccb8446ed747749ad74ea339c8f547
  Author: Tony Cook <t...@develop-help.com>
  Date:   2023-07-04 (Tue, 04 Jul 2023)

  Changed paths:
    M utf8.h

  Log Message:
  -----------
  utf8.h: prevent cast truncation warning on MSVC for continuation mask

Building with /W4 on MSVC would produce a warning like:

inline.h(309): warning C4310: cast truncates constant value

While the casting here is harmless, it's reasonable to eliminate
warnings caused by headers that embedders or extension builders might
use.

Fixes #20999


  Commit: 7345ef0e49826f671b55f4b058244b63589f76f3
      
https://github.com/Perl/perl5/commit/7345ef0e49826f671b55f4b058244b63589f76f3
  Author: Tony Cook <t...@develop-help.com>
  Date:   2023-07-04 (Tue, 04 Jul 2023)

  Changed paths:
    M inline.h

  Log Message:
  -----------
  inline.h: eliminate conversion warnings

Setting si_cxsubix in the context helper functions from the
difference of two pointers on 64-bit builds produced warnings
on MSVC like:

inline.h(2815): warning C4244: '=': conversion from '__int64' to 'I32', 
possible loss of data

Similar warnings are produced on gcc with -Wconversion (and many more)

The machine that needs 2**32 context entries would also require
much more memory to store the contexts themselves and any SVs and
stack entries needed within each context, so I've cast the
values rather than making si_cxsubix a SSize_t.

Fixes parts of #20841, preventing this warning when the header is
used by embedders or extension builders.


  Commit: 9075f9d3c48af08c3e339e6a1efe4a88896f9aec
      
https://github.com/Perl/perl5/commit/9075f9d3c48af08c3e339e6a1efe4a88896f9aec
  Author: Tony Cook <t...@develop-help.com>
  Date:   2023-07-04 (Tue, 04 Jul 2023)

  Changed paths:
    M inline.h

  Log Message:
  -----------
  foldEQ(), foldEQ_latin1(): mark the context as unused

These functions are also used as pointers, so we need to retain the
context parameter to be compatible with the other similar functions
that do use their context.


  Commit: a383e1c1a3f1023dd97dca5a34e955fd689c87c7
      
https://github.com/Perl/perl5/commit/a383e1c1a3f1023dd97dca5a34e955fd689c87c7
  Author: Tony Cook <t...@develop-help.com>
  Date:   2023-07-04 (Tue, 04 Jul 2023)

  Changed paths:
    M inline.h

  Log Message:
  -----------
  sv_isbool(): mark the context parameter unused

This warned on MSVC


  Commit: 0d8ee59c0c8126743299483b2fc83f9aa0bd8fad
      
https://github.com/Perl/perl5/commit/0d8ee59c0c8126743299483b2fc83f9aa0bd8fad
  Author: Tony Cook <t...@develop-help.com>
  Date:   2023-07-04 (Tue, 04 Jul 2023)

  Changed paths:
    M inline.h

  Log Message:
  -----------
  inline.h: prevent cast warning on MSVC

MSVC complains about truncation (it isn't truncation) when casting
the pointer to bool.


  Commit: 709d3527f482e17fb660660e021c4e0b0d1664cd
      
https://github.com/Perl/perl5/commit/709d3527f482e17fb660660e021c4e0b0d1664cd
  Author: Tony Cook <t...@develop-help.com>
  Date:   2023-07-04 (Tue, 04 Jul 2023)

  Changed paths:
    M win32/win32.h

  Log Message:
  -----------
  win32.h: eliminate anonymous union (C11 feature)

This warned on MSVC:

win32.h(277): warning C4201: nonstandard extension used: nameless struct/union


  Commit: 062c5cf99316948b6d05806b9379915565767b5b
      
https://github.com/Perl/perl5/commit/062c5cf99316948b6d05806b9379915565767b5b
  Author: Tony Cook <t...@develop-help.com>
  Date:   2023-07-04 (Tue, 04 Jul 2023)

  Changed paths:
    M cop.h

  Log Message:
  -----------
  cop.h: suppress padding warning from MSVC

MSVC complained about this code:

cop.h(34): warning C4324: 'jmpenv': structure was padded due to alignment 
specifier

which happens due to the jmpbuf structure in MSVC having an
alignment attribute set.


  Commit: 61dc65be39aca9f6adadfafb3437f35b15277310
      
https://github.com/Perl/perl5/commit/61dc65be39aca9f6adadfafb3437f35b15277310
  Author: Tony Cook <t...@develop-help.com>
  Date:   2023-07-04 (Tue, 04 Jul 2023)

  Changed paths:
    M sv_inline.h

  Log Message:
  -----------
  SvPVXtrue(): mark the context parameter as unused


  Commit: 2fea725777ae0dd2c2a52e1ee39d3ddf9e519c30
      
https://github.com/Perl/perl5/commit/2fea725777ae0dd2c2a52e1ee39d3ddf9e519c30
  Author: Tony Cook <t...@develop-help.com>
  Date:   2023-07-04 (Tue, 04 Jul 2023)

  Changed paths:
    M cop.h
    M inline.h
    M sv_inline.h
    M utf8.h
    M win32/win32.h

  Log Message:
  -----------
  Suppress various header build warnings on MSVC with /W4

These prevents noise for downstream embedders.

PR #21031


Compare: https://github.com/Perl/perl5/compare/07e3b5cdb6f7...2fea725777ae

Reply via email to