BUILD: debug: Avoid warnings in dev mode with -02 because of some BUG_ON tests
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 18 Nov 2019 14:50:25 +0000 (15:50 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 20 Nov 2019 13:11:47 +0000 (14:11 +0100)
commitea009736d8f25be6c79aff0bed3a994eef87f3fd
tree8a61fb2aa382b946a43a4c26b2d31317c0279d80
parenteba2294e5b82931fd2e74f829e8092366728a6af
BUILD: debug: Avoid warnings in dev mode with -02 because of some BUG_ON tests

Some BUG_ON() tests emit a warning because of a potential null pointer
dereference on an HTX block. In fact, it should never happen, but now, GCC is
happy.

This patch must be backported to 2.0.
src/hlua.c
src/mux_h2.c
src/stats.c