summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2014-01-02 12:37:07 -0600
committerAllan McRae <allan@archlinux.org>2014-01-10 14:30:05 +1000
commit5097b162fc0dee03ce23b22fd58bf7d2bfd2ea5b (patch)
treeb8809234a302f9391bf561c3afe7dda8a9d1dcd8
parent00b6694068bcf86775089e0c110073fa592794d5 (diff)
downloadpacman-5097b162fc0dee03ce23b22fd58bf7d2bfd2ea5b.tar.xz
Fix compile warnings on systems without getmntent
Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r--lib/libalpm/diskspace.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libalpm/diskspace.c b/lib/libalpm/diskspace.c
index 42c2e870..5b80ef1f 100644
--- a/lib/libalpm/diskspace.c
+++ b/lib/libalpm/diskspace.c
@@ -84,6 +84,9 @@ static int mount_point_load_fsinfo(alpm_handle_t *handle, alpm_mountpoint_t *mou
_alpm_log(handle, ALPM_LOG_DEBUG, "loading fsinfo for %s\n", mountpoint->mount_dir);
mountpoint->read_only = mountpoint->fsp.f_flag & ST_RDONLY;
mountpoint->fsinfo_loaded = MOUNT_FSINFO_LOADED;
+#else
+ (void)handle;
+ (void)mountpoint;
#endif
return 0;