]> git.ipfire.org Git - thirdparty/squid.git/commit - src/base/AsyncCall.h
Bug 5232: Fix GCC v12 build [-Wuse-after-free] (#1136)
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Wed, 14 Sep 2022 06:47:52 +0000 (06:47 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Wed, 14 Sep 2022 19:00:18 +0000 (19:00 +0000)
commit1b1b280534ef54f206d820ed2259df7608d3a06e
treedd8ec9ba8243d91a546804357280b6ddfe356924
parentf30eb8f7f4a0ea74e68bb9e4199093dd0af7509b
Bug 5232: Fix GCC v12 build [-Wuse-after-free] (#1136)

This warning is a false positive. Introduced in GCC v12, use-after-free
checks have attracted dozens of bug reports, with several reports still
open as of GCC v12.2, including one that looks very similar to our case:
https://gcc.gnu.org/bugzilla//show_bug.cgi?id=106776

Removing (excessive) "inline" works around this GCC bug. We do not have
a better workaround right now. If we see more false positives like this,
we may disable -Wuse-after-free until its support matures.
src/base/AsyncCall.h