From ed753eada1b7df1283246e0f4adbd50bd45e01dc Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 10 May 2012 14:33:38 -0400 Subject: [PATCH] Cleanup: don't use GNU old-style field designator extension ustfork.c:112:38: warning: use of GNU old-style field designator extension [-Wgnu-designator] struct ustfork_clone_info info = { fn: fn, arg: arg }; ^~~ .fn = ustfork.c:112:46: warning: use of GNU old-style field designator extension [-Wgnu-designator] struct ustfork_clone_info info = { fn: fn, arg: arg }; ^~~~ .arg = Signed-off-by: Mathieu Desnoyers --- liblttng-ust-fork/ustfork.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liblttng-ust-fork/ustfork.c b/liblttng-ust-fork/ustfork.c index ac191971..9ed087c2 100644 --- a/liblttng-ust-fork/ustfork.c +++ b/liblttng-ust-fork/ustfork.c @@ -107,7 +107,7 @@ int clone(int (*fn)(void *), void *child_stack, int flags, void *arg, ...) tls, ctid); } else { /* Creating a real process, we need to intervene. */ - struct ustfork_clone_info info = { fn: fn, arg: arg }; + struct ustfork_clone_info info = { fn = fn, arg = arg }; ust_before_fork(&info.sigset); retval = plibc_func(clone_fn, child_stack, flags, &info, -- 2.34.1