https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80460
--- Comment #7 from Thiago Macieira <thiago at kde dot org> --- (In reply to Jakub Jelinek from comment #1) > The warning is done before optimizations (except GENERIC opts), and can > hardly be done much later. I imagined it would be the case. Treat this as low priority. I've added the [[fallthrough]] to the source code where this appeared to silence the warning. Arguably, the author should have used Q_UNREACHABLE() there too, not Q_ASSERT(!"message").