From: Simon Marchi Date: Mon, 25 Nov 2019 21:00:56 +0000 (-0500) Subject: Make create_file function static in gen-ust-tracef.c X-Git-Tag: v2.13.0-rc1~736 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=6c64187973c605e3992eba5c638859dfb247190a;p=lttng-tools.git Make create_file function static in gen-ust-tracef.c Fixes: CC gen-ust-tracef.o /home/smarchi/src/lttng-tools/tests/utils/testapp/gen-ust-tracef/gen-ust-tracef.c:36:6: error: no previous declaration for ‘create_file’ [-Werror=missing-declarations] void create_file(const char *path) ^~~~~~~~~~~ Signed-off-by: Simon Marchi Change-Id: I12359b30054da609be2aca998de960719120083e Signed-off-by: Jérémie Galarneau --- diff --git a/tests/utils/testapp/gen-ust-tracef/gen-ust-tracef.c b/tests/utils/testapp/gen-ust-tracef/gen-ust-tracef.c index 09a2c327d..8f74a90da 100644 --- a/tests/utils/testapp/gen-ust-tracef/gen-ust-tracef.c +++ b/tests/utils/testapp/gen-ust-tracef/gen-ust-tracef.c @@ -23,6 +23,7 @@ const char *str = "test string"; +static void create_file(const char *path) { int ret;