]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: debug: Add braces to if statement calling only CHECK_IF()
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 19 Jul 2022 09:53:46 +0000 (11:53 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 19 Jul 2022 10:11:04 +0000 (12:11 +0200)
commitf7ebe584d790872f029566be588fee17f5a2168e
tree9ef5b711b1f6f45de8cb416c24735f80837f4c73
parent0933c7b3c8d4c50303ef03ee7858b47ccac46477
BUILD: debug: Add braces to if statement calling only CHECK_IF()

In src/ev_epoll.c, a CHECK_IF() is guarded by an if statement. So, when the
macro is empty, GCC (at least 11.3.1) is not happy because there is an if
statement with an empty body without braces... It is handled by
"-Wempty-body" option.

So, braces are added and GCC is now happy.

No backport needed.
src/ev_epoll.c