From 15c84280601a55e4713feff5e2d1337d564a4ef3 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sat, 4 Feb 2023 10:49:01 +0100 Subject: [PATCH] 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. --- src/thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thread.c b/src/thread.c index 94d150d96..489c84164 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; -- 2.47.3