mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-04-11 03:31:36 +00:00
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.
This commit is contained in:
parent
0933c7b3c8
commit
f7ebe584d7
@ -57,8 +57,9 @@ static void __fd_clo(int fd)
|
||||
* wrong thread or during startup, which is what we're checking
|
||||
* for. Regardless, it is not a problem to do so.
|
||||
*/
|
||||
if (unlikely(!(global.mode & MODE_STARTING)))
|
||||
if (unlikely(!(global.mode & MODE_STARTING))) {
|
||||
CHECK_IF(tgid != tgrp && !thread_isolated());
|
||||
}
|
||||
|
||||
for (i = ha_tgroup_info[tgrp-1].base; i < ha_tgroup_info[tgrp-1].base + ha_tgroup_info[tgrp-1].count; i++)
|
||||
if (m & ha_thread_info[i].ltid_bit)
|
||||
|
Loading…
Reference in New Issue
Block a user