diff options
author | Brad King <brad.king@kitware.com> | 2023-05-22 17:17:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-05-22 21:14:54 (GMT) |
commit | 93ee2b369c8f2937d848026bad40b09586a5c487 (patch) | |
tree | 86a9b3cbdc529cea02b36190295bbf29a35806b0 /Source/CPack/cmCPackInnoSetupGenerator.cxx | |
parent | 7b3ec2b891d587828808845bfc390fb33aa120d9 (diff) | |
download | CMake-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.cxx | 2 |
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, |