summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cmCPackInnoSetupGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-05-22 17:17:41 (GMT)
committerBrad King <brad.king@kitware.com>2023-05-22 21:14:54 (GMT)
commit93ee2b369c8f2937d848026bad40b09586a5c487 (patch)
tree86a9b3cbdc529cea02b36190295bbf29a35806b0 /Source/CPack/cmCPackInnoSetupGenerator.cxx
parent7b3ec2b891d587828808845bfc390fb33aa120d9 (diff)
downloadCMake-93ee2b369c8f2937d848026bad40b09586a5c487.zip
CMake-93ee2b369c8f2937d848026bad40b09586a5c487.tar.gz
CMake-93ee2b369c8f2937d848026bad40b09586a5c487.tar.bz2
Source: Fix -Wdangling-reference warnings exposed by gcc 13
Diffstat (limited to 'Source/CPack/cmCPackInnoSetupGenerator.cxx')
-rw-r--r--Source/CPack/cmCPackInnoSetupGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CPack/cmCPackInnoSetupGenerator.cxx b/Source/CPack/cmCPackInnoSetupGenerator.cxx
index d8825d4..5d2c208 100644
--- a/Source/CPack/cmCPackInnoSetupGenerator.cxx
+++ b/Source/CPack/cmCPackInnoSetupGenerator.cxx
@@ -277,7 +277,7 @@ bool cmCPackInnoSetupGenerator::ProcessSetupSection()
return false;
}
- const std::string& architecture = GetOption("CPACK_INNOSETUP_ARCHITECTURE");
+ cmValue const architecture = GetOption("CPACK_INNOSETUP_ARCHITECTURE");
if (architecture != "x86" && architecture != "x64" &&
architecture != "arm64" && architecture != "ia64") {
cmCPackLogger(cmCPackLog::LOG_ERROR,