Skip to content

Commit f4665e2

Browse files
authored
Merge pull request #10 from Kolcha/master
removed warning for wide range of GCC versions (5,6,7), fixes #9
2 parents 9a812a3 + 9a04e8f commit f4665e2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

QHotkey/qhotkey_x11.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,6 @@ QHotkeyPrivateX11::HotkeyErrorHandler::~HotkeyErrorHandler()
172172

173173
int QHotkeyPrivateX11::HotkeyErrorHandler::handleError(Display *display, XErrorEvent *error)
174174
{
175-
QT_WARNING_PUSH
176-
QT_WARNING_DISABLE_GCC("-Wimplicit-fallthrough")
177175
switch (error->error_code) {
178176
case BadAccess:
179177
case BadValue:
@@ -184,8 +182,9 @@ QT_WARNING_DISABLE_GCC("-Wimplicit-fallthrough")
184182
errorString = QHotkeyPrivateX11::formatX11Error(display, error->error_code);
185183
return 1;
186184
}
185+
Q_FALLTHROUGH();
186+
// fall through
187187
default:
188188
return 0;
189189
}
190-
QT_WARNING_POP
191190
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy