From dd7b09e49c33b45d78fd36294366be34d1ce7c72 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Mon, 19 Aug 2019 11:57:02 +0000 Subject: Qt (zip_helper): Fix Dead Store Fix dead store (Dead assignement/Dead increment) Warning found by Clang Change-Id: Ib16fc6c0783adda8485056d5e20973cf078e7d7e Reviewed-on: https://code.wireshark.org/review/34321 Reviewed-by: Roland Knall Petri-Dish: Roland Knall Tested-by: Petri Dish Buildbot Reviewed-by: Alexis La Goutte --- ui/qt/utils/wireshark_zip_helper.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/qt/utils/wireshark_zip_helper.cpp b/ui/qt/utils/wireshark_zip_helper.cpp index f2035dda53..3595215843 100644 --- a/ui/qt/utils/wireshark_zip_helper.cpp +++ b/ui/qt/utils/wireshark_zip_helper.cpp @@ -45,7 +45,8 @@ bool WireSharkZipHelper::unzip(QString zipFile, QString directory, bool (*fileCh return false; unz_global_info64 gi; - int err = unzGetGlobalInfo64(uf,&gi); + int err; + unzGetGlobalInfo64(uf,&gi); unsigned int nmbr = static_cast(gi.number_entry); if (nmbr <= 0) return false; -- cgit v1.2.3