Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove warnings #445

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -2403,6 +2403,7 @@ xr_sync_(session_t *ps, Drawable d
*pfence = XSyncCreateFence(ps->dpy, d, False);
if (*pfence) {
Bool triggered = False;
(void) triggered; /* Remove warning */
/* if (XSyncQueryFence(ps->dpy, *pfence, &triggered) && triggered)
XSyncResetFence(ps->dpy, *pfence); */
// The fence may fail to be created (e.g. because of died drawable)
Expand Down
29 changes: 4 additions & 25 deletions src/compton.c
Original file line number Diff line number Diff line change
Expand Up @@ -1722,6 +1722,8 @@ win_paint_win(session_t *ps, win *w, XserverRegion reg_paint,
reg_paint, pcache_reg);
break;
#endif
default:
;
}
}

Expand Down Expand Up @@ -2664,29 +2666,6 @@ win_on_factor_change(session_t *ps, win *w) {
ps->o.unredir_if_possible_blacklist, &w->cache_uipblst);
}

/**
* Process needed window updates.
*/
static void
win_upd_run(session_t *ps, win *w, win_upd_t *pupd) {
if (pupd->shadow) {
win_determine_shadow(ps, w);
pupd->shadow = false;
}
if (pupd->fade) {
win_determine_fade(ps, w);
pupd->fade = false;
}
if (pupd->invert_color) {
win_determine_invert_color(ps, w);
pupd->invert_color = false;
}
if (pupd->focus) {
win_update_focused(ps, w);
pupd->focus = false;
}
}

/**
* Update cache data in struct _win that depends on window size.
*/
Expand Down Expand Up @@ -3440,8 +3419,6 @@ wid_get_prop_window(session_t *ps, Window wid, Atom aprop) {
*/
static void
win_update_focused(session_t *ps, win *w) {
bool focused_old = w->focused;

if (UNSET != w->focused_force) {
w->focused = w->focused_force;
}
Expand Down Expand Up @@ -6599,6 +6576,8 @@ init_filters(session_t *ps) {
return false;
}
#endif
default:
;
}
}

Expand Down
5 changes: 2 additions & 3 deletions src/compton.h
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,8 @@ set_tgt_clip(session_t *ps, XserverRegion reg, const reg_data_t *pcache_reg) {
glx_set_clip(ps, reg, pcache_reg);
break;
#endif
default:
;
}
}

Expand Down Expand Up @@ -885,9 +887,6 @@ win_on_wtype_change(session_t *ps, win *w);
static void
win_on_factor_change(session_t *ps, win *w);

static void
win_upd_run(session_t *ps, win *w, win_upd_t *pupd);

static void
calc_win_size(session_t *ps, win *w);

Expand Down