[php-src] PR #17554: Drop --with-uncritical-warn-choke configuration option
| From: | cmb69 | Date: | Thu, 23 Jan 2025 23:09:35 +0000 |
| Subject: | [php-src] PR #17554: Drop --with-uncritical-warn-choke configuration option | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-30486@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/17554
Author: cmb69
This selection of suppressed warnings is pretty arbitrary, and apparently disabling it does not
raise any more warning for whole php-src (except for
-W-deprecated-declarations). As
such it appears to be pretty useless, and it seems to be more appropriate to let users select which
warnings to suppress via manually set CFLAGS.
Since we already apply /wd4996[1] when building with MSVC, and there are indeed plenty
of deprecation warnings, for now, we apply -W-deprecated-declarations for Clang builds
unconditionally.
[1] <https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-3-c4996>
---
Note that I'm planning to have a closer look at the deprecations soon. It seems it's
possible to just suppress some of these (such as the deprecated POSIX function names) by setting
some compile time flags, which appears to a be nice improvement over suppressing all deprecation
warnings.