From ca517e8b320c7a31c3a147fb1212ddb33cabd919 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 22 Jun 2017 13:37:40 +0200 Subject: Eliminate warnings about missing prototypes This patch eliminates warnings generated by the -Wmissing-prototypes option. With this flag set, we are now forced to have prototypes for all global, exported functions, that have to be made visible to the definitions and we are forced to mark all local functions as static. Signed-off-by: David Oberhollenzer --- tests/fs-tests/simple/perf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/fs-tests/simple/perf.c') diff --git a/tests/fs-tests/simple/perf.c b/tests/fs-tests/simple/perf.c index b98b98b..aee8226 100644 --- a/tests/fs-tests/simple/perf.c +++ b/tests/fs-tests/simple/perf.c @@ -66,7 +66,7 @@ static unsigned speed(size_t bytes, long long usecs) return (unsigned) k; } -void perf(void) +static void perf(void) { pid_t pid; int fd, i; @@ -155,14 +155,14 @@ void perf(void) /* Title of this test */ -const char *perf_get_title(void) +static const char *perf_get_title(void) { return "Measure file system read and write speed"; } /* Description of this test */ -const char *perf_get_description(void) +static const char *perf_get_description(void) { return "Syncs the file system (a newly created empty file system is " \ -- cgit v1.2.3