From c4deec58198b2327187f115deb0ea52543d602a4 Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Thu, 16 Jul 2026 19:00:44 +0200 Subject: [PATCH] CLEANUP: event_hdl: Use BUG_ON_STATIC() Now that we have a BUG_ON_STATIC() macro, use it instead of rolling our own. --- include/haproxy/event_hdl.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/haproxy/event_hdl.h b/include/haproxy/event_hdl.h index 7985e7001..5f2db6ca0 100644 --- a/include/haproxy/event_hdl.h +++ b/include/haproxy/event_hdl.h @@ -342,8 +342,7 @@ int event_hdl_lookup_resume(event_hdl_sub_list *sub_list, * EVENT_HDL_ASYNC_EVENT_DATA \ * size in event_hdl-t.h \ */ \ - __attribute__((unused)) \ - char __static_assert[(size <= EVENT_HDL_ASYNC_EVENT_DATA) ? 1 : -1];\ + BUG_ON_STATIC(size > EVENT_HDL_ASYNC_EVENT_DATA); \ (size); \ }) #define _EVENT_HDL_CB_DATA(data,size,mfree) \ -- 2.47.3