From fcc221f53a8686d9a50d8152b263eb389b3d81d7 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 21 May 2021 21:41:56 +0300 Subject: [PATCH] Cppcheck warning. --- src/libs/vwidgets/vabstractmainwindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libs/vwidgets/vabstractmainwindow.cpp b/src/libs/vwidgets/vabstractmainwindow.cpp index f4c2f3de5..2fe16c266 100644 --- a/src/libs/vwidgets/vabstractmainwindow.cpp +++ b/src/libs/vwidgets/vabstractmainwindow.cpp @@ -255,6 +255,7 @@ auto VAbstractMainWindow::CheckFilePermissions(const QString &path, QWidget *mes #ifdef Q_OS_WIN32 qt_ntfs_permission_lookup++; // turn checking on #endif /*Q_OS_WIN32*/ + // cppcheck-suppress unreadVariable const bool isFileWritable = QFileInfo(path).isWritable(); #ifdef Q_OS_WIN32 qt_ntfs_permission_lookup--; // turn it off again