https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109559
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Originally this happened when including boost headers, function_template.hpp in particular, where newer versions suppress a lot of warnings: commit b75386f628b46f1060a20b6e015931bac37b7da7 (origin/feature/drone) Author: Peter Dimov <pdi...@gmail.com> Date: Sun Feb 12 04:50:04 2023 +0200 Avoid -Wuninitialized under GCC 11.3 commit 9229ed30103df59a4f989ca0235b0d1026bf6e1c Author: Peter Dimov <pdi...@gmail.com> Date: Sun Feb 12 04:47:38 2023 +0200 Avoid another -Wmaybe-uninitialized under GCC 11/12 commit 16fca8368b5da14c4bcad977c2738dc6e482e1b7 (tag: boost-1.81.0.beta1, tag: boost-1.81.0, tag: boost-1.80.0.beta1, tag: boost-1.80.0, origin/feature/issue-42) Author: Peter Dimov <pdi...@gmail.com> Date: Mon May 30 20:25:13 2022 +0300 Keep -Wmaybe-uninitialized disabled commit 4cf7c718b873223cbab6f8188bea2034f27ba99d Merge: 389f886 5b4e279 Author: Peter Dimov <pdi...@gmail.com> Date: Mon May 30 19:56:08 2022 +0300 Merge branch 'gcc12-Wuninitialized' of https://github.com/jngrad/boost-function into feature/issue-42 commit abc1bf9b4ae3f45251d17b451c69c3e79dfd0cf6 (origin/feature/update-ci) Author: Peter Dimov <pdi...@gmail.com> Date: Mon May 30 18:44:07 2022 +0300 Extend GCC 11 workaround to GCC 12 as well commit 5b4e2797a28f9477d2df5fa915409dac73ff00c6 Author: Jean-Noël Grad <jg...@icp.uni-stuttgart.de> Date: Mon May 30 16:16:41 2022 +0200 Avoid -Wuninitialized warnings in GCC 12 commit 277757befc321bda3b9d8038ee59ae6e4616cdca Author: Peter Dimov <pdi...@gmail.com> Date: Thu Dec 16 06:18:06 2021 +0200 Disable -Wmaybe-uninitialized in function_template.hpp for GCC 11 commit 7c90434317894f1a0c63c7a395ddf569eff1d308 Author: Romain Geissler <romain.geiss...@amadeus.com> Date: Fri Mar 27 18:56:14 2020 +0000 Avoid -Wmaybe-uninitialized warnings in gcc (issue #27).