From 562f936f87b994cdd940d5142f6d3aedb2d95573 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Wed, 25 Mar 2020 18:39:35 -0400 Subject: [PATCH 1/1] Fix: common: make lttng_trace_chunk_remove_subdirectory_recursive static MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This function is only used in this file, make it static. Fixes this diagnostic: CC trace-chunk.lo /home/simark/src/lttng-tools/src/common/trace-chunk.c:1498:5: error: no previous prototype for ‘lttng_trace_chunk_remove_subdirectory_recursive’ [-Werror=missing-prototypes] 1498 | int lttng_trace_chunk_remove_subdirectory_recursive(struct lttng_trace_chunk *chunk, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Change-Id: I19e03b64557ce845b94f02fcf0d6fbafba654d95 Signed-off-by: Simon Marchi Signed-off-by: Jérémie Galarneau --- src/common/trace-chunk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/trace-chunk.c b/src/common/trace-chunk.c index 7b60d9197..8ac00c120 100644 --- a/src/common/trace-chunk.c +++ b/src/common/trace-chunk.c @@ -1494,7 +1494,7 @@ end: return status; } -LTTNG_HIDDEN +static int lttng_trace_chunk_remove_subdirectory_recursive(struct lttng_trace_chunk *chunk, const char *path) { -- 2.34.1