From: Eric Sandeen Date: Tue, 9 Oct 2018 16:49:47 +0000 (-0500) Subject: mkfs.xfs: include full parser prototype in subopts definition X-Git-Tag: v4.19.0-rc1~41 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=33dc45c663d7fb356dac8228a09e913f7710ad08;p=thirdparty%2Fxfsprogs-dev.git mkfs.xfs: include full parser prototype in subopts definition 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/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c index 092db00de..77eb5f0fc 100644 --- a/mkfs/xfs_mkfs.c +++ b/mkfs/xfs_mkfs.c @@ -1667,7 +1667,10 @@ sector_opts_parser( struct subopts { char opt; struct opt_params *opts; - int (*parser)(); + int (*parser)(struct opt_params *opts, + int subopt, + char *value, + struct cli_params *cli); } subopt_tab[] = { { 'b', &bopts, block_opts_parser }, { 'd', &dopts, data_opts_parser },