summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2011-03-05 16:13:01 -0500
committerSteve Dickson <steved@redhat.com>2011-03-05 16:23:11 -0500
commit930323817b61877d61fb8ef57229013daa2e6091 (patch)
treeae9f61184570ab8010c692c3de8b01fb672fb821 /utils
parent3ef3dc8f1e87ba7a6eaa3c2a6965aff6c80ba414 (diff)
downloadnfs-utils-930323817b61877d61fb8ef57229013daa2e6091.tar.gz
nfs-utils-930323817b61877d61fb8ef57229013daa2e6091.tar.xz
nfs-utils-930323817b61877d61fb8ef57229013daa2e6091.zip
mount: Remove MOUNT_CONFIG warnings
The following changes are needed to remove compile warnings when MOUNT_CONFIG is not defined Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/mount/mount_config.h6
-rw-r--r--utils/mount/stropts.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/utils/mount/mount_config.h b/utils/mount/mount_config.h
index e86b4ba..69ffd1e 100644
--- a/utils/mount/mount_config.h
+++ b/utils/mount/mount_config.h
@@ -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;
}
diff --git a/utils/mount/stropts.c b/utils/mount/stropts.c
index e314b82..f1aa503 100644
--- a/utils/mount/stropts.c
+++ b/utils/mount/stropts.c
@@ -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 */
/*