From: Eric Sandeen Date: Tue, 9 Oct 2018 16:49:47 +0000 (-0500) Subject: xfsprogs: use ANSI declarations of void-arg functions X-Git-Tag: v4.19.0-rc1~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e66e9ee7e6bfacedd7e2fa0bd6b80bd3b7356eae;p=thirdparty%2Fxfsprogs-dev.git xfsprogs: use ANSI declarations of void-arg functions Fixes sparse warnings about this. Signed-off-by: Eric Sandeen Reviewed-by: Darrick J. Wong Reviewed-by: Christoph Hellwig Signed-off-by: Eric Sandeen --- diff --git a/db/io.h b/db/io.h index a60aaaaf4..8d5720bf9 100644 --- a/db/io.h +++ b/db/io.h @@ -59,7 +59,7 @@ extern void xfs_verify_recalc_crc(struct xfs_buf *bp); * returns -1 for unchecked, 0 for bad and 1 for good */ static inline int -iocur_crc_valid() +iocur_crc_valid(void) { if (!iocur_top->bp) return -1; diff --git a/io/init.c b/io/init.c index e9449a28e..29afe09a6 100644 --- a/io/init.c +++ b/io/init.c @@ -244,7 +244,7 @@ idle_loop(void *arg) } void -start_idle_thread() +start_idle_thread(void) { pthread_t t;