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>
This commit is contained in:
Joerg Bornemann 2021-03-22 21:20:35 +01:00
parent 65b4937f34
commit 567b154ba7

View File

@ -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