]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
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 7668167ba61edaec579c222b5e8ba3cd4d3f6068..2775d0bde95f596beb47677901d9248a10be2dee 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 c0a8e18ecece9fae0900c9b9a92cd819521a2adf..c8a58b11f8a4e083e80be7311670b02d5c76de44 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;