diff --git a/src/compton.h b/src/compton.h index fea61fe..121a2f2 100644 --- a/src/compton.h +++ b/src/compton.h @@ -25,9 +25,7 @@ #include "win.h" #include "x.h" -enum root_flags { - ROOT_FLAGS_SCREEN_CHANGE = 1 -}; +enum root_flags { ROOT_FLAGS_SCREEN_CHANGE = 1 }; // == Functions == // TODO move static inline functions that are only used in compton.c, into @@ -100,9 +98,10 @@ static inline void free_wincondlst(c2_lptr_t **pcondlst) { } #ifndef CONFIG_OPENGL -static inline void free_paint_glx(session_t *ps, paint_t *p) { +static inline void free_paint_glx(session_t *ps attr_unused, paint_t *p attr_unused) { } -static inline void free_win_res_glx(session_t *ps, struct managed_win *w) { +static inline void +free_win_res_glx(session_t *ps attr_unused, struct managed_win *w attr_unused) { } #endif diff --git a/src/render.c b/src/render.c index 5e15914..c2f9262 100644 --- a/src/render.c +++ b/src/render.c @@ -92,6 +92,15 @@ static inline bool paint_bind_tex(session_t *ps, paint_t *ppaint, int wid, int h if (force || !glx_tex_binded(ppaint->ptex, ppaint->pixmap)) return glx_bind_pixmap(ps, &ppaint->ptex, ppaint->pixmap, wid, hei, repeat, fbcfg); +#else + (void)ps; + (void)ppaint; + (void)wid; + (void)hei; + (void)repeat; + (void)depth; + (void)visual; + (void)force; #endif return true; } @@ -203,6 +212,12 @@ void render(session_t *ps, int x, int y, int dx, int dy, int wid, int hei, doubl #endif default: assert(0); } +#ifndef CONFIG_OPENGL + (void)neg; + (void)ptex; + (void)reg_paint; + (void)pprogram; +#endif } static inline void @@ -738,6 +753,9 @@ win_blur_background(session_t *ps, struct managed_win *w, xcb_render_picture_t t #endif default: assert(0); } +#ifndef CONFIG_OPENGL + (void)reg_paint; +#endif } /// paint all windows