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.1.0-rc1~87 X-Git-Url: http://git.liburcu.org/?p=lttng-ust.git;a=commitdiff_plain;h=02db712565d384aef3270ce9e0868810397e8bf1 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 8fade56e..2e4c8a8f 100644 --- a/liblttng-ust-fork/ustfork.c +++ b/liblttng-ust-fork/ustfork.c @@ -109,7 +109,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,