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:18 +0000 (16:04 -0500)
commit11bd9cb470017f9934c25aeb77019ccee0e49e3c
tree2c2e3a97e946ddc569178230304039bbdea07f31
parent640b9481e1805d314256361ed49d55dcc35d6172
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.02457 seconds and 4 git commands to generate.