1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 04:20:27 +01:00

Added explicit fall-through comments to pacify GCC.

This commit is contained in:
Jeremy Sowden
2019-07-12 23:28:10 +01:00
committed by Carlos R. Mafra
parent b59273f199
commit a7f8e990db
3 changed files with 7 additions and 0 deletions

View File

@@ -3378,6 +3378,8 @@ static int setSwPOptions(WScreen * scr, WDefaultEntry * entry, void *tdata, void
} }
} }
/* Fall through. */
case 1: case 1:
if (!WMIsPLString(WMGetFromPLArray(array, 0))) { if (!WMIsPLString(WMGetFromPLArray(array, 0))) {
wwarning(_("Invalid arguments for option \"%s\""), entry->key); wwarning(_("Invalid arguments for option \"%s\""), entry->key);

View File

@@ -1591,6 +1591,7 @@ void wMenuScroll(WMenu *menu)
switch (ev.type) { switch (ev.type) {
case EnterNotify: case EnterNotify:
WMHandleEvent(&ev); WMHandleEvent(&ev);
/* Fall through. */
case MotionNotify: case MotionNotify:
x = (ev.type == MotionNotify) ? ev.xmotion.x_root : ev.xcrossing.x_root; x = (ev.type == MotionNotify) ? ev.xmotion.x_root : ev.xcrossing.x_root;
y = (ev.type == MotionNotify) ? ev.xmotion.y_root : ev.xcrossing.y_root; y = (ev.type == MotionNotify) ? ev.xmotion.y_root : ev.xcrossing.y_root;
@@ -1644,6 +1645,7 @@ void wMenuScroll(WMenu *menu)
break; break;
case KeyPress: case KeyPress:
done = 1; done = 1;
/* Fall through. */
default: default:
WMHandleEvent(&ev); WMHandleEvent(&ev);
break; break;

View File

@@ -527,6 +527,7 @@ void PlaceWindow(WWindow *wwin, int *x_ret, int *y_ret, unsigned width, unsigned
case WPM_CENTER: case WPM_CENTER:
if (center_place_window(wwin, x_ret, y_ret, width, height, usableArea)) if (center_place_window(wwin, x_ret, y_ret, width, height, usableArea))
break; break;
/* Fall through. */
case WPM_AUTO: case WPM_AUTO:
if (autoPlaceWindow(wwin, x_ret, y_ret, width, height, False, usableArea)) { if (autoPlaceWindow(wwin, x_ret, y_ret, width, height, False, usableArea)) {
@@ -538,6 +539,8 @@ void PlaceWindow(WWindow *wwin, int *x_ret, int *y_ret, unsigned width, unsigned
through to cascade placement, as people who want tiling want through to cascade placement, as people who want tiling want
automagicness aren't going to want to place their window */ automagicness aren't going to want to place their window */
/* Fall through. */
case WPM_CASCADE: case WPM_CASCADE:
if (wPreferences.window_placement == WPM_AUTO || wPreferences.window_placement == WPM_CENTER) if (wPreferences.window_placement == WPM_AUTO || wPreferences.window_placement == WPM_CENTER)
scr->cascade_index++; scr->cascade_index++;