From: Willy Tarreau Date: Sat, 4 Feb 2023 09:49:01 +0000 (+0100) Subject: BUILD: thread: fix build warnings with older gcc compilers X-Git-Tag: v2.8-dev3~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=15c84280601a55e4713feff5e2d1337d564a4ef3;p=thirdparty%2Fhaproxy.git BUILD: thread: fix build warnings with older gcc compilers The "{ 0 }" form to initialize an empty structure triggers build warnings on gcc 4.8, let's use the more common "{ }" instead. --- diff --git a/src/thread.c b/src/thread.c index 94d150d964..489c841645 100644 --- a/src/thread.c +++ b/src/thread.c @@ -1234,7 +1234,7 @@ int thread_map_to_groups() */ int thread_resolve_group_mask(struct thread_set *ts, int defgrp, char **err) { - struct thread_set new_ts = { 0 }; + struct thread_set new_ts = { }; ulong mask, imask; uint g;