From: Simon Marchi Date: Mon, 25 Nov 2019 21:02:06 +0000 (-0500) Subject: tests: include foo.h in foo.c X-Git-Tag: v2.12.0-rc1~184 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e1f2d1dece1b5b84307ff190ed8996c7fb7ada24;p=lttng-tools.git tests: include foo.h in foo.c Fixes: CC foo.lo /home/smarchi/src/lttng-tools/tests/utils/testapp/userspace-probe-elf-binary/foo.c:19:5: error: no previous declaration for ‘dynamic_symbol’ [-Werror=missing-declarations] int dynamic_symbol(int a) ^~~~~~~~~~~~~~ Change-Id: I58888da2908bcf4c38d59ba9bacf3e96adc575b6 Signed-off-by: Simon Marchi Signed-off-by: Jérémie Galarneau --- diff --git a/tests/utils/testapp/userspace-probe-elf-binary/foo.c b/tests/utils/testapp/userspace-probe-elf-binary/foo.c index 59dd12a06..13b236379 100644 --- a/tests/utils/testapp/userspace-probe-elf-binary/foo.c +++ b/tests/utils/testapp/userspace-probe-elf-binary/foo.c @@ -16,6 +16,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "foo.h" + int dynamic_symbol(int a) { return a + a;