From: Chuck Lever Date: Tue, 14 Jul 2009 20:59:31 +0000 (-0400) Subject: mount.nfs: Squelch unused parameter warnings on empty functions X-Git-Tag: nfs-utils-1-2-1-rc2~3 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=d976ec69f0df3f19a3be9351f07086de54af42b9;p=nfs-utils.git mount.nfs: Squelch unused parameter warnings on empty functions Address compiler warnings: fstab.c:288: warning: unused parameter sig parse_dev.c:186: warning: unused parameter dev parse_dev.c:187: warning: unused parameter hostname parse_dev.c:187: warning: unused parameter pathname Signed-off-by: Chuck Lever Signed-off-by: Steve Dickson --- diff --git a/utils/mount/fstab.c b/utils/mount/fstab.c index 7668167..2775d0b 100644 --- a/utils/mount/fstab.c +++ b/utils/mount/fstab.c @@ -285,7 +285,7 @@ handler (int sig) { } static void -setlkw_timeout (int sig) { +setlkw_timeout (__attribute__((unused)) int sig) { /* nothing, fcntl will fail anyway */ } diff --git a/utils/mount/parse_dev.c b/utils/mount/parse_dev.c index c0a8e18..c8a58b1 100644 --- a/utils/mount/parse_dev.c +++ b/utils/mount/parse_dev.c @@ -183,8 +183,9 @@ static int nfs_parse_square_bracket(const char *dev, * with the mount request and failing with a cryptic error message * later. */ -static int nfs_parse_nfs_url(const char *dev, - char **hostname, char **pathname) +static int nfs_parse_nfs_url(__attribute__((unused)) const char *dev, + __attribute__((unused)) char **hostname, + __attribute__((unused)) char **pathname) { nfs_error(_("%s: NFS URLs are not supported"), progname); return 0;