From: Mathieu Desnoyers Date: Thu, 10 May 2012 18:33:38 +0000 (-0400) Subject: Cleanup: don't use GNU old-style field designator extension X-Git-Tag: v2.0.3~7 X-Git-Url: http://git.lttng.org/?p=lttng-ust.git;a=commitdiff_plain;h=ed753eada1b7df1283246e0f4adbd50bd45e01dc 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 --- 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,