From b7394e073e4aaec34d59af1f9973ea4b2ac384cf Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 23 Mar 2023 17:26:25 +0100 Subject: [PATCH] QmakeProjectManager: Work around a warning warning: this statement may fall through [-Wimplicit-fallthrough=] Change-Id: I95b97781934521b578571da196d6688302ce76f6 Reviewed-by: Reviewed-by: Christian Stenger --- .../qmakeprojectmanager/wizards/qtprojectparameters.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/plugins/qmakeprojectmanager/wizards/qtprojectparameters.cpp b/src/plugins/qmakeprojectmanager/wizards/qtprojectparameters.cpp index e2db56e8246..1612e36753b 100644 --- a/src/plugins/qmakeprojectmanager/wizards/qtprojectparameters.cpp +++ b/src/plugins/qmakeprojectmanager/wizards/qtprojectparameters.cpp @@ -65,8 +65,10 @@ void QtProjectParameters::writeProFile(QTextStream &str) const switch (type) { case ConsoleApp: // Mac: Command line apps should not be bundles - str << "CONFIG += console\nCONFIG -= app_bundle\n\n"; - // fallthrough + str << "CONFIG += console\n" + "CONFIG -= app_bundle\n\n" + "TEMPLATE = app\n"; + break; case GuiApp: str << "TEMPLATE = app\n"; break;