model-writtenrun 4854 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Andres Freund reported that upgrading to Perl 5.36 broke mylodon's strict C99 checks and produced extensive declaration and shadowing warnings, temporarily disabled Perl there, and proposed treating external dependency headers as system headers #1.
- Dagfinn Ilmari Mannsåker explained Perl's compiler-dependent C11 features, its deliberate allowance of mixed declarations, and the nested macros causing shadow warnings, while Peter Eisentraut cited similar Python problems and favored -isystem #2 #3.
- After discussing dependency scope, build-system support, and how -isystem suppresses warnings #4 #5 #6, Andres returned with a prototype using #pragma GCC system_header in plperl.h and a Meson-only capability probe because the pragma made suppression sites easier to find #7.
- Tom Lane favored the pragma's more explicit behavior and lower risk of side effects, recommending trying the compiler probe before falling back to __GNUC__ detection #8 #10.
- Andres replaced the probe with an __GNUC__ guard because GCC warns about the pragma in .c files and autoconf header tests were awkward; he also rejected individual diagnostic suppression because unknown warning names would require separate capability checks #11.
- Tom approved the revision with a macro rename and a comment correction #12, which Andres incorporated into 388e80132c before announcing the HEAD landing #13.
- After observing no problems on HEAD, Andres proceeded with backpatching and reported it complete #14 #15.
- Tom subsequently proposed removing configure's -Wno-compound-token-split-by-macro probe, but testing showed those warnings still arise at Perl macro use sites, so he withdrew that cleanup; the warning-suppression patch remained landed and backpatched #16 #17.