diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2021-03-22 21:20:35 +0100 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2021-03-22 22:32:56 +0100 |
commit | 567b154ba7e8cccb9145f3c19647e717703ad45f (patch) | |
tree | 658190d4a4f500d43c925510c74eb96f8155f743 /qmake | |
parent | 65b4937f341134fbb1082050b7ae8ecf5c0ba564 (diff) |
Fix warning when building qmake with MSVC
Fix the C4715 warning for 'hostToTargetPathEnum' by marking the qFatal()
branch as unreachable.
Change-Id: Id065daaffd865e85985b1a8e0ac2eba4a2ff0b1c
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'qmake')
-rw-r--r-- | qmake/qmakelibraryinfo.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qmake/qmakelibraryinfo.cpp b/qmake/qmakelibraryinfo.cpp index 0d083e17d5..445ebce35b 100644 --- a/qmake/qmakelibraryinfo.cpp +++ b/qmake/qmakelibraryinfo.cpp @@ -145,6 +145,7 @@ static QLibraryInfo::LibraryPath hostToTargetPathEnum(int loc) return mapping[i].second; } qFatal("Unhandled host path %d in hostToTargetPathEnum.", loc); + Q_UNREACHABLE(); } struct LocationInfo |