From 83292c8e67fb0ca80070d0ce417c6525de5f84f1 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Mon, 26 Apr 2021 04:03:53 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Fix=20-Wunused-variable=20?= =?UTF-8?q?in=20pfile.cpp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/pfile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/pfile.cpp b/Source/pfile.cpp index 55f6adff0..54f987960 100644 --- a/Source/pfile.cpp +++ b/Source/pfile.cpp @@ -95,7 +95,7 @@ void pfile_rename_temp_to_perm() dwIndex = 0; while (GetTempSaveNames(dwIndex, szTemp)) { - bool result = GetPermSaveNames(dwIndex, szPerm); // DO NOT PUT DIRECTLY INTO ASSERT! + [[maybe_unused]] bool result = GetPermSaveNames(dwIndex, szPerm); // DO NOT PUT DIRECTLY INTO ASSERT! assert(result); dwIndex++; if (mpqapi_has_file(szTemp)) {