Repository navigation
Commit 56d1522
Keep php-src's -Wassume suppression past the engine header scope
zend_portability.h silences -Wassume for the rest of the translation unit
with a pragma: under clang ZEND_ASSERT is __builtin_assume, and the
Z_PARAM_* macros expand it, at the caller's site, over expressions with
potential side effects. support.h includes the engine headers inside a
diagnostic push/pop, and the pop discarded that pragma along with our own
exemptions, re-enabling the warning for every Z_PARAM_* expansion in the
extension. CI's strict set covered it with -Wno-assume; the lenient local
build did not, so a clean clang build printed ~95,000 warnings (2.28M
lines), burying any real one and taking 217s instead of 42s at -j10.
support.h now restores the pragma after the pop, and -Wno-assume leaves
the strict set. A clean build is warning-free under both the lenient
flags and the strict ones, and the resulting .so is byte-identical.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CmttmeH2WqiTdVc9HGHBNL1 parent efaa82a commit 56d1522
2 files changed
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | 27 | | |
30 | 28 | | |
31 | 29 | | |
| |||
48 | 46 | | |
49 | 47 | | |
50 | 48 | | |
51 | | - | |
| 49 | + | |
52 | 50 | | |
53 | 51 | | |
54 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
48 | 56 | | |
49 | 57 | | |
50 | 58 | | |
| |||
0 commit comments