From: Mathieu Desnoyers Date: Mon, 26 Sep 2011 15:47:03 +0000 (-0400) Subject: Cleanup warnings X-Git-Tag: v1.9.1~180 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=fb50c39dd77bec752b9695345fc2fab6cc7b9b46;p=lttng-ust.git Cleanup warnings Signed-off-by: Mathieu Desnoyers --- diff --git a/libust/lttng-ust-abi.c b/libust/lttng-ust-abi.c index 16566c87..6eb74ed8 100644 --- a/libust/lttng-ust-abi.c +++ b/libust/lttng-ust-abi.c @@ -177,11 +177,8 @@ void objd_table_destroy(void) { int i; - for (i = 0; i < objd_table.allocated_len; i++) { - struct obj *obj = _objd_get(i); - + for (i = 0; i < objd_table.allocated_len; i++) (void) objd_unref(i); - } free(objd_table.array); objd_table.array = NULL; objd_table.len = 0; @@ -730,7 +727,7 @@ static const struct objd_ops lttng_metadata_ops = { static long lttng_rb_cmd(int objd, unsigned int cmd, unsigned long arg) { - struct stream_priv_data *priv = objd_private(objd); + //struct stream_priv_data *priv = objd_private(objd); switch (cmd) { default: diff --git a/tests/ust-basic-tracing/ust-basic-tracing.c b/tests/ust-basic-tracing/ust-basic-tracing.c index 437b9c24..a2f75d4e 100644 --- a/tests/ust-basic-tracing/ust-basic-tracing.c +++ b/tests/ust-basic-tracing/ust-basic-tracing.c @@ -810,7 +810,7 @@ int main(int argc, const char **argv) const char *home_dir; int ret, wait_shm_fd; struct sigaction act; - mode_t old_umask; + mode_t old_umask = 0; const char *outputpath; const char **event_names; unsigned int nr_events; diff --git a/tests/ust-multi-test/ust-multi-test.c b/tests/ust-multi-test/ust-multi-test.c index ff840538..2737c18f 100644 --- a/tests/ust-multi-test/ust-multi-test.c +++ b/tests/ust-multi-test/ust-multi-test.c @@ -826,7 +826,7 @@ int main(int argc, char **argv) const char *home_dir; int ret, wait_shm_fd; struct sigaction act; - mode_t old_umask; + mode_t old_umask = 0; set_ulimit();