From: Wolfgang Stöggl Date: Tue, 30 Apr 2019 14:23:32 +0000 (+0200) Subject: Fix compiler warning: label defined but not used X-Git-Tag: v1.7.2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9a780077fb812c67c817e8d266184e64d2a3a09a;p=thirdparty%2Frrdtool-1.x.git Fix compiler warning: label defined but not used - 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] --- 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