Skip to content

Commit

Permalink
Silence compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mtreca committed Oct 2, 2018
1 parent 11e1b77 commit d4d3a39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1344,7 +1344,6 @@ cardinal_focus(uint32_t dir)
struct win_position focus_win_pos = get_window_position(CENTER, focused_win);

float closest_distance = -1;
float closest_angle = -360;

win = win_list;

Expand Down Expand Up @@ -1429,7 +1428,6 @@ cardinal_focus(uint32_t dir)

if (closest_distance == -1 || (cur_distance < closest_distance)) {
closest_distance = cur_distance;
closest_angle = cur_angle;
desired_window = win;
}

Expand Down Expand Up @@ -3186,6 +3184,7 @@ ipc_wm_config(uint32_t *d)
break;
case IPCConfigGridGapWidth:
conf.grid_gap = d[1];
break;
case IPCConfigCursorPosition:
conf.cursor_position = d[1];
break;
Expand All @@ -3197,6 +3196,7 @@ ipc_wm_config(uint32_t *d)
break;
case IPCConfigEnableResizeHints:
conf.resize_hints = d[1];
break;
case IPCConfigStickyWindows:
conf.sticky_windows = d[1];
break;
Expand Down

0 comments on commit d4d3a39

Please sign in to comment.