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.7.4~9 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=70d580569745970e4a243f07dfb3abae76d6e526;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 b190937cc..9fb14f0a5 100644 --- a/src/lib/lttng-ctl/lttng-ctl.c +++ b/src/lib/lttng-ctl/lttng-ctl.c @@ -2033,7 +2033,7 @@ int lttng_list_tracker_pids(struct lttng_handle *handle, /* * lib constructor */ -static void __attribute__((constructor)) init() +static void __attribute__((constructor)) init(void) { /* Set default session group */ lttng_set_tracing_group(DEFAULT_TRACING_GROUP); @@ -2042,7 +2042,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); }