Source: Fix -Wdangling-reference warnings exposed by gcc 13

This commit is contained in:
Brad King
2023-05-22 13:17:41 -04:00
parent 7b3ec2b891
commit 93ee2b369c
5 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -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,