model-writtenrun 4883 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Thomas Munro opened the thread by reporting Clang 15 warnings about unprototyped tree-walker callbacks and the impending C language change in #1, and Tom Lane initially hoped explicit callback prototypes could preserve existing caller signatures in #2.
- After finding that both compilers required matching void * context parameters, Tom posted a proof of concept in #3 and expanded it in #4, but warned that converting every callback would lose useful context-type checking.
- Tom proposed casting macro wrappers instead in #4; Thomas questioned their language-standard validity in #5 and #7, then accepted Tom's argument that existing code already depended on compatible pointer representations in #8 and #9.
- The conversion also exposed ExecShutdownNode's incorrect callback arity in #4, prompting Thomas's support for a separate fix in #5 and Tom's decision to backpatch it despite no known current platform failure in #11.
- Tom implemented that discussion directly in c35ba141de, introducing a separate two-argument shutdown walker rather than the attachment's public-signature change, and removing the unnecessary public return value only in HEAD.
- Tom's replacement patch in #12 preserved caller signatures through casting macros and _impl functions, abandoning the broad callback conversions; testing also showed that -Wcast-function-type still detected incorrect callback arity, with its explicit enablement clarified in #14.
- The replacement patch #12 landed unchanged as 1c27d16e6e, with its function renaming making the API implementation unsuitable for backpatching.
- For older branches, Tom implemented the suppression strategy described in #11 as 7d5d3f05bf, disabling -Wdeprecated-non-prototype when supported and extending the warning-only fix back through PostgreSQL 9.2.
- Clang 16 reopened the problem with a stricter function-cast warning in #15; Tom favored disabling it in #16, and Thomas supplied the tested build-system patch in #17, which landed unchanged as 101c37cd34.
- Thomas confirmed that the warning suppression worked in #18, while explaining that unrelated LLVM opaque-pointer API changes still prevented the seawasp build from succeeding.
- At the thread's final message, Andres Freund identified an empty meson.build accidentally introduced into REL_13_STABLE while backpatching the Clang 16 suppression in #19 and removed it in e7480f3dd6, leaving no attached patch pending.