Silence implicit-fallthough warnings

Fixes Werror build with GCC 7.

Change-Id: Ie0e9fb907af545b6c200558faaaf83b8ec058b7a
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
This commit is contained in:
Allan Sandfeld Jensen 2016-12-15 15:21:23 +01:00
parent 7adfe7494b
commit 6614f7754c
2 changed files with 3 additions and 2 deletions

View File

@ -197,6 +197,7 @@ Type Moc::parseType()
prev();
break;
}
Q_FALLTHROUGH();
case CHAR:
case SHORT:
case INT:

View File

@ -68,8 +68,8 @@ public:
inline QByteArray unquotedLexem() { return symbols.at(index-1).unquotedLexem();}
inline const Symbol &symbol() { return symbols.at(index-1);}
void error(int rollback);
void error(const char *msg = 0);
Q_NORETURN void error(int rollback);
Q_NORETURN void error(const char *msg = 0);
void warning(const char * = 0);
void note(const char * = 0);