]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: thread: fix build warnings with older gcc compilers
authorWilly Tarreau <w@1wt.eu>
Sat, 4 Feb 2023 09:49:01 +0000 (10:49 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 4 Feb 2023 09:49:01 +0000 (10:49 +0100)
The "{ 0 }" form to initialize an empty structure triggers build warnings
on gcc 4.8, let's use the more common "{ }" instead.

src/thread.c

index 94d150d9642939344b84a1182b342d06de7d7683..489c841645a5bb988da0c0eaac0099c16861903e 100644 (file)
@@ -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 = { };
+       struct thread_set new_ts = { };
        ulong mask, imask;
        uint g;