commit | 6a378d1677cbab31987a0979726b68b25612197a | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Thu Aug 11 13:56:42 2022 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Thu Aug 11 13:59:13 2022 +0200 |
tree | 41a2ebbc941c5131a69d996f1d73ffd50f3d61cb | |
parent | a8b2f843d203f3bc6c363842ee368d59266c3663 [diff] |
BUILD: stconn: fix build warning at -O3 about possible null sc gcc-6.x and 7.x emit build warnings about sc possibly being null upon return from sc_detach_endp(). This actually is not the case and the compiler is a little bit overzealous there, but there exists code paths that can make this analysis non-trivial so let's at least add a similar BUG_ON() to let both the compiler and the deverloper know this doesn't happen. This should be backported to 2.6.