From: Simon Marchi Date: Mon, 25 Nov 2019 21:16:32 +0000 (-0500) Subject: Make remove_file_from_hierarchy function static in test_directory_handle.c X-Git-Tag: v2.12.0-rc2~37 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=c9bcac0c15ccdfc03de767633d766592eb0e7282;p=lttng-tools.git Make remove_file_from_hierarchy function static in test_directory_handle.c Fixes: CC test_directory_handle.o /home/smarchi/src/lttng-tools/tests/unit/test_directory_handle.c:139:5: error: no previous declaration for ‘remove_file_from_hierarchy’ [-Werror=missing-declarations] int remove_file_from_hierarchy(struct lttng_directory_handle *test_dir_handle, ^~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Simon Marchi Change-Id: I060a89d88f2de8e12368496968708d273cb318f2 Signed-off-by: Jérémie Galarneau --- diff --git a/tests/unit/test_directory_handle.c b/tests/unit/test_directory_handle.c index f3213cb74..a94c4df75 100644 --- a/tests/unit/test_directory_handle.c +++ b/tests/unit/test_directory_handle.c @@ -126,6 +126,7 @@ end: } /* Remove "file1" from the test folder hierarchy. */ +static int remove_file_from_hierarchy(struct lttng_directory_handle *test_dir_handle, const char *test_root_name) {