From 9021a748afc9a380feb80dc4d1a824c4d77f2aa1 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Fri, 17 Mar 2017 14:03:08 -0700 Subject: QStorageInfo: Fix warning about unused variable Happens on non-Linux, non-macOS Unix systems (got it on FreeBSD). Change-Id: Ie67d35dff21147e99ad9fffd14acc7308b5ff17e Reviewed-by: Jake Petroules Reviewed-by: Oswald Buddenhagen --- src/corelib/io/qstorageinfo_unix.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/corelib/io') diff --git a/src/corelib/io/qstorageinfo_unix.cpp b/src/corelib/io/qstorageinfo_unix.cpp index fcc7b8ca50..b9c9883609 100644 --- a/src/corelib/io/qstorageinfo_unix.cpp +++ b/src/corelib/io/qstorageinfo_unix.cpp @@ -503,6 +503,8 @@ static QByteArray extractSubvolume(const QStorageIterator &it) // if we didn't find the subvolume name, return the subvolume ID return id; } +#else + Q_UNUSED(it); #endif return QByteArray(); } -- cgit v1.2.3