Fix: missing "void" parameter of lib constructor and destructor
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 8 Jun 2016 17:28:38 +0000 (13:28 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 8 Jun 2016 21:00:51 +0000 (17:00 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/lib/lttng-ctl/lttng-ctl.c

index b190937cc8f42478e51612c3df7abc665e01728f..9fb14f0a518059009b2eb0ef7bc599885790c37d 100644 (file)
@@ -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);
 }
This page took 0.026993 seconds and 4 git commands to generate.