mount.nfs: Squelch unused parameter warnings on empty functions
authorChuck Lever <chuck.lever@oracle.com>
Tue, 14 Jul 2009 20:59:31 +0000 (16:59 -0400)
committerSteve Dickson <steved@redhat.com>
Tue, 14 Jul 2009 20:59:31 +0000 (16:59 -0400)
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 <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mount/fstab.c
utils/mount/parse_dev.c

index 7668167..2775d0b 100644 (file)
@@ -285,7 +285,7 @@ handler (int sig) {
 }
 
 static void
-setlkw_timeout (int sig) {
+setlkw_timeout (__attribute__((unused)) int sig) {
      /* nothing, fcntl will fail anyway */
 }
 
index c0a8e18..c8a58b1 100644 (file)
@@ -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;