From 6c85195b39e5c560fbc977f319300a079924b611 Mon Sep 17 00:00:00 2001 From: sawinglogz <3787776-sawinglogz@users.noreply.gitlab.com> Date: Mon, 19 Aug 2019 12:23:45 -0400 Subject: [PATCH] Remove unused variable that clang missed. --- oscar/SleepLib/loader_plugins/prs1_loader.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/oscar/SleepLib/loader_plugins/prs1_loader.cpp b/oscar/SleepLib/loader_plugins/prs1_loader.cpp index 4fe73689..acb86d36 100644 --- a/oscar/SleepLib/loader_plugins/prs1_loader.cpp +++ b/oscar/SleepLib/loader_plugins/prs1_loader.cpp @@ -518,8 +518,6 @@ bool PRS1Loader::PeekProperties(MachineInfo & info, const QString & filename, Ma return false; } QString modelnum; - int ptype=0; - bool ok; for (auto & key : props.keys()) { bool skip = false; @@ -532,7 +530,8 @@ bool PRS1Loader::PeekProperties(MachineInfo & info, const QString & filename, Ma skip = true; } if (key == "ProductType") { - ptype = props[key].toInt(&ok, 16); + bool ok; + props[key].toInt(&ok, 16); if (!ok) qWarning() << "ProductType" << props[key]; skip = true; }