From 9a780077fb812c67c817e8d266184e64d2a3a09a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wolfgang=20St=C3=B6ggl?= Date: Tue, 30 Apr 2019 16:23:32 +0200 Subject: [PATCH] Fix compiler warning: label defined but not used MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit - The label 'no_lseek_necessary' is only relevant, if HAVE_POSIX_FALLOCATE is defined. - Fixes the following compiler warning on systems, where HAVE_POSIX_FALLOCATE is not defined: rrd_open.c:387:3: warning: label 'no_lseek_necessary' defined but not used [-Wunused-label] --- src/rrd_open.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rrd_open.c b/src/rrd_open.c index d29853f3..17edd379 100644 --- a/src/rrd_open.c +++ b/src/rrd_open.c @@ -384,7 +384,9 @@ rrd_file_t *rrd_open( goto out_close; } } +#ifdef HAVE_POSIX_FALLOCATE no_lseek_necessary: +#endif #ifdef HAVE_MMAP #ifndef HAVE_POSIX_FALLOCATE -- 2.47.2