From 8c6cef0ad9c7f6e1cc74a3ef0ee3b77e33792a6a Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Sat, 6 Apr 2024 09:30:35 +0800 Subject: [PATCH] - fix: Compiler set options "Check for stack smashing attacks (-fstack-protector)" was not correctly applied when compiling. --- RedPandaIDE/compiler/compilerinfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RedPandaIDE/compiler/compilerinfo.cpp b/RedPandaIDE/compiler/compilerinfo.cpp index d327c603..0e326989 100644 --- a/RedPandaIDE/compiler/compilerinfo.cpp +++ b/RedPandaIDE/compiler/compilerinfo.cpp @@ -173,7 +173,7 @@ void CompilerInfo::prepareCompilerOptions() addOption(CC_CMD_OPT_WARNING_AS_ERROR, QObject::tr("Make all warnings into errors (-Werror)"), groupName, true, true, false, "-Werror"); addOption(CC_CMD_OPT_ABORT_ON_ERROR , QObject::tr("Abort compilation on first error (-Wfatal-errors)"), groupName, true, true, false, "-Wfatal-errors"); sl.clear(); - sl.append(QPair("Normal"," ")); + sl.append(QPair("Normal","")); sl.append(QPair("Strong","-strong")); sl.append(QPair("All","-all")); addOption(CC_CMD_OPT_STACK_PROTECTOR , QObject::tr("Check for stack smashing attacks (-fstack-protector)"), groupName, false, false, true, "-fstack-protector", CompilerOptionType::Choice, sl);