removed warning for wide range of GCC versions (5,6,7)

This commit is contained in:
Kolcha
2017-11-08 12:55:42 +03:00
parent 9a812a3eb4
commit 974af9253c
+1 -3
View File
@@ -172,8 +172,6 @@ QHotkeyPrivateX11::HotkeyErrorHandler::~HotkeyErrorHandler()
int QHotkeyPrivateX11::HotkeyErrorHandler::handleError(Display *display, XErrorEvent *error)
{
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wimplicit-fallthrough")
switch (error->error_code) {
case BadAccess:
case BadValue:
@@ -184,8 +182,8 @@ QT_WARNING_DISABLE_GCC("-Wimplicit-fallthrough")
errorString = QHotkeyPrivateX11::formatX11Error(display, error->error_code);
return 1;
}
// fall through
default:
return 0;
}
QT_WARNING_POP
}