diff --git a/autotests/kprocesstest_helper.cpp b/autotests/kprocesstest_helper.cpp --- a/autotests/kprocesstest_helper.cpp +++ b/autotests/kprocesstest_helper.cpp @@ -14,6 +14,10 @@ int main(int argc, char **argv) { + if (argc < 2) { + printf("Missing parameter"); + return -1; + } KProcess p; p.setShellCommand(QString::fromLatin1("echo " EOUT "; echo " EERR " >&2")); p.setOutputChannelMode(static_cast(atoi(argv[1]))); diff --git a/src/lib/caching/kshareddatacache.cpp b/src/lib/caching/kshareddatacache.cpp --- a/src/lib/caching/kshareddatacache.cpp +++ b/src/lib/caching/kshareddatacache.cpp @@ -78,7 +78,9 @@ switch (align) { case 1: t |= data[2] << 16; + Q_FALLTHROUGH(); case 2: t |= data[1] << 8; + Q_FALLTHROUGH(); case 3: t |= data[0]; } @@ -112,8 +114,11 @@ switch (pack) { case 3: d |= data[2] << 16; + Q_FALLTHROUGH(); case 2: d |= data[1] << 8; + Q_FALLTHROUGH(); case 1: d |= data[0]; + Q_FALLTHROUGH(); case 0: h += (t >> sr) | (d << sl); h *= m; h ^= h >> r; @@ -137,7 +142,9 @@ switch (len) { case 3: h += data[2] << 16; + Q_FALLTHROUGH(); case 2: h += data[1] << 8; + Q_FALLTHROUGH(); case 1: h += data[0]; h *= m; h ^= h >> r; diff --git a/src/lib/io/kdirwatch.cpp b/src/lib/io/kdirwatch.cpp --- a/src/lib/io/kdirwatch.cpp +++ b/src/lib/io/kdirwatch.cpp @@ -952,6 +952,8 @@ switch (preferredMethod) { #if HAVE_FAM case KDirWatch::FAM: entryAdded = useFAM(e); break; +#else + case KDirWatch::FAM: Q_UNREACHABLE(); break; #endif #if HAVE_SYS_INOTIFY_H case KDirWatch::INotify: entryAdded = useINotify(e); break;