From: Jérémie Galarneau Date: Wed, 8 Jun 2016 17:28:38 +0000 (-0400) Subject: Fix: missing "void" parameter of lib constructor and destructor X-Git-Tag: v2.8.1~14 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=fc8ed572851ef87c574bd6619cb01693d2472314;p=lttng-tools.git Fix: missing "void" parameter of lib constructor and destructor Signed-off-by: Jérémie Galarneau --- diff --git a/src/lib/lttng-ctl/lttng-ctl.c b/src/lib/lttng-ctl/lttng-ctl.c index d0deade2e..0ae6b0b6e 100644 --- a/src/lib/lttng-ctl/lttng-ctl.c +++ b/src/lib/lttng-ctl/lttng-ctl.c @@ -2413,7 +2413,7 @@ end: /* * lib constructor. */ -static void __attribute__((constructor)) init() +static void __attribute__((constructor)) init(void) { /* Set default session group */ lttng_set_tracing_group(DEFAULT_TRACING_GROUP); @@ -2422,7 +2422,7 @@ static void __attribute__((constructor)) init() /* * lib destructor. */ -static void __attribute__((destructor)) lttng_ctl_exit() +static void __attribute__((destructor)) lttng_ctl_exit(void) { free(tracing_group); }