From: Simon Marchi Date: Wed, 25 Mar 2020 22:39:35 +0000 (-0400) Subject: Fix: common: make lttng_trace_chunk_remove_subdirectory_recursive static X-Git-Tag: v2.12.0-rc2~10 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=16057fe164df71db1ae538781a91d2170ba50967;p=lttng-tools.git Fix: common: make lttng_trace_chunk_remove_subdirectory_recursive static 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 --- 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) {