]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
mount: Remove MOUNT_CONFIG warnings
authorSteve Dickson <steved@redhat.com>
Sat, 5 Mar 2011 21:13:01 +0000 (16:13 -0500)
committerSteve Dickson <steved@redhat.com>
Sat, 5 Mar 2011 21:23:11 +0000 (16:23 -0500)
The following changes are needed to remove compile warnings when
MOUNT_CONFIG is not defined

Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mount/mount_config.h
utils/mount/stropts.c

index e86b4ba0a95285a9f5932c9831ce153d229fb6af..69ffd1ef7927762f2d694e889cfa72486193ae69 100644 (file)
@@ -39,10 +39,10 @@ static inline char *mount_config_opts(char *spec,
 
 #else /* MOUNT_CONFIG */
 
-static inline void mount_config_init(char *program) { }
+static inline void mount_config_init(__attribute__ ((unused)) char *program) { }
 
-static inline char *mount_config_opts(char *spec,
-               char *mount_point, char *mount_opts)
+static inline char *mount_config_opts(__attribute__ ((unused)) char *spec,
+               __attribute__ ((unused)) char *mount_point, char *mount_opts)
 {
        return mount_opts;
 }
index e314b82f6034d2d1762e89847963761855cedfa6..f1aa5030062e2cb7bee232d6f14ea880ace688b0 100644 (file)
@@ -110,7 +110,7 @@ static void nfs_default_version(struct nfsmount_info *mi)
        }
 }
 #else
-inline void nfs_default_version(struct nfsmount_info *mi) {}
+inline void nfs_default_version(__attribute__ ((unused)) struct nfsmount_info *mi) {}
 #endif /* MOUNT_CONFIG */
 
 /*