Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync -Wno-implicit-fallthrough #14187

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

petk
Copy link
Member

@petk petk commented May 9, 2024

This is a sync of the #6252 after few years:

  • ext/date: fixed since derickr/timelib@f8caaef Edited: wrong commit pasted, flag was removed in one of the commits
  • ext/hash: warning happens only on 32-bit build in ext/hash/sha3/generic32lc/KeccakP-1600-inplace32BI.c
  • ext/opcache: IR JIT doesn't seem to have this issue
  • ext/pcre remains disabled due to pcre2lib/sljit/sljitNativeARM_64.c

And I'm also checking CI how it looks.

This is a sync of the php#6252 after few
years:
- ext/date: fixed since derickr/timelib@f8caaef
- ext/hash: warning happens only on 32-bit build in
  ext/hash/sha3/generic32lc/KeccakP-1600-inplace32BI.c
- ext/opcache: IR JIT doesn't seem to have this issue
- ext/pcre remains disabled due to pcre2lib/sljit/sljitNativeARM_64.c
@derickr
Copy link
Contributor

derickr commented May 22, 2024

What are the warnings without this flag? Ideally for ext/date and lib, this should be warning free.

@petk
Copy link
Member Author

petk commented May 22, 2024

What are the warnings without this flag? Ideally for ext/date and lib, this should be warning free.

For the ext/date, I wasn't able to reproduce the warning. Even on very old commits from PHP-8.2. It seems that this fallthrough warning in ext/date was happening on one of the CI machines back then but now it seems to be working ok with removing this flag. I think something was fixed in the meantime in the timelib. Tested on 32-bit and 64-bit...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants