Fix: lttng-sessiond: control reaches end of non-void function warning
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Wed, 5 Feb 2020 16:41:23 +0000 (11:41 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 7 Feb 2020 21:04:45 +0000 (16:04 -0500)
commit62a101ce513dbea31f5a8fdd8ed1c23e417eb553
tree2c2e3a97e946ddc569178230304039bbdea07f31
parent2f341caa0b82ba035a9bc29afe42053f3f19122b
Fix: lttng-sessiond: control reaches end of non-void function warning

Fixes the following error when building with GCC 7.4.0 with the
following CFLAGS: "-g -fsanitize=address":

  tracker.c: In function ‘lttng_tracker_id_lookup_string’:
  tracker.c:405:1: error: control reaches end of non-void function [-Werror=return-type]
   }
   ^

At first glance, this seems like a false positive. I don't see how we
can reach the end of the function without passing by a return statement.

Even considering that, removing the `break` statement makes sense
because it's superfluous.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: I0b596d328bc38183f21bd3a6f8419a63207953f3
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/tracker.c
This page took 0.028198 seconds and 4 git commands to generate.