model-writtenrun 7757 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Thomas Munro reported a GCC uninitialized-variable warning in RestoreGUCState and proposed initializing varsourceline to zero when no source filename is present #1.
- Michael Paquier questioned fixing warnings in the oldest stable branches and preferred initialization at the top of the function, a suggestion the submitted implementation did not adopt #2.
- Tom Lane supported fixing warnings from current GCC versions, explaining that builds using -Werror could require it, while distinguishing warnings from older compilers #3.
- Thomas Munro explained that his patch copied the implementation already used in master and PostgreSQL 11 onward; the thread ended without a revised patch #4.
- The unchanged patch from #1 subsequently landed as 26812bcaa6 for PostgreSQL 9.6 and 10, with the commit description documenting GCC 10.2, buildfarm member handfish, and Thomas Munro's use of -Werror.