[php-src] PR #17076: Resolve MSVC C4244 level 2 warnings
| From: | cmb69 | Date: | Sat, 07 Dec 2024 10:28:57 +0000 |
| Subject: | [php-src] PR #17076: Resolve MSVC C4244 level 2 warnings | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-29922@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/17076
Author: cmb69
[Level 2 C4244
warnings](https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-2-c4244)
hint at possible loss of data. So far this PR silences them by explicitly casting, what actually may
be appropriate in some cases (possibly for FFI); in some other cases the warnings might be bogus, in
which case we may want to add suitable assertions. There may be some cases, though, which hint at
edge case bugs (in which case these should better be fixed).
It would be great if we can properly solve this. Maybe some of the code owners can have a look?
Note that the change to the CFLAGS for CI is not supposed to be committed; it's just to see
whether I've missed some of these warnings when testing locally.