tests: include foo.h in foo.c
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 25 Nov 2019 21:02:06 +0000 (16:02 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 9 Dec 2019 21:24:06 +0000 (16:24 -0500)
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 <simon.marchi@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/utils/testapp/userspace-probe-elf-binary/foo.c

index 59dd12a0647f2a7877bdbe7c7d4501702cad2525..13b23637995166316932cfbf94a1ce467538da4c 100644 (file)
@@ -16,6 +16,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
+#include "foo.h"
+
 int dynamic_symbol(int a)
 {
        return a + a;
 int dynamic_symbol(int a)
 {
        return a + a;
This page took 0.032912 seconds and 4 git commands to generate.