]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: threads: fix minor build warnings when threads are disabled
authorWilly Tarreau <w@1wt.eu>
Sun, 2 Dec 2018 18:28:41 +0000 (19:28 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 2 Dec 2018 18:28:41 +0000 (19:28 +0100)
commitb54c40ac0b19075d50d2e1a3aae2b3cf49591604
tree4855b4fab147813c74396a431cd101760611ec10
parentc8b476d9521e4355825ae89c24c12ffbbb1791c7
BUILD: threads: fix minor build warnings when threads are disabled

These potential null-deref warnings are emitted on gcc 7 and above
when threads are disabled due to the use of objt_server() after an
existing validity test. Let's switch to __objt_server() since we
know the pointer is valid, it will not confuse the compiler.

Some of these may be backported to 1.8.
src/cli.c
src/proto_http.c
src/proto_htx.c
src/stream.c