diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2017-05-31 23:53:56 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2017-06-01 02:59:00 +0000 |
commit | 787d2e94da6369dce310bd418dccb0012cb37b6f (patch) | |
tree | 29dcdf0ba61542bf5820969b047e66037bc0bdd7 | |
parent | 85881f7fc12040caa0325612c1ce54299dedec8b (diff) |
Fix (wrong) GCC7 fallthrough warnings
An exception is thrown, so it does not real fall through.
Change-Id: I02f11caff677d24b8d2d924aa59a56333aee723e
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
-rw-r--r-- | src/app/qbs-setup-qt/commandlineparser.cpp | 1 | ||||
-rw-r--r-- | src/app/qbs-setup-toolchains/commandlineparser.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/app/qbs-setup-qt/commandlineparser.cpp b/src/app/qbs-setup-qt/commandlineparser.cpp index 9a6a003f7..817d4bd95 100644 --- a/src/app/qbs-setup-qt/commandlineparser.cpp +++ b/src/app/qbs-setup-qt/commandlineparser.cpp @@ -87,6 +87,7 @@ void CommandLineParser::parse(const QStringList &commandLine) case 0: case 1: throwError(Tr::tr("Not enough command-line arguments provided.")); + break; case 2: m_qmakePath = m_commandLine.at(0); m_profileName = m_commandLine.at(1); diff --git a/src/app/qbs-setup-toolchains/commandlineparser.cpp b/src/app/qbs-setup-toolchains/commandlineparser.cpp index b1cbc9129..629d44bbd 100644 --- a/src/app/qbs-setup-toolchains/commandlineparser.cpp +++ b/src/app/qbs-setup-toolchains/commandlineparser.cpp @@ -91,6 +91,7 @@ void CommandLineParser::parse(const QStringList &commandLine) case 0: case 1: throwError(Tr::tr("Not enough command-line arguments provided.")); + break; case 2: m_compilerPath = m_commandLine.at(0); m_profileName = m_commandLine.at(1); |