mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-17 18:45:10 +00:00
Replace the if(&l) unused hack with unused attribute
This commit is contained in:
parent
5781e4f1e7
commit
4ab7f6d0d1
@ -561,7 +561,7 @@ void destroy_window(void)
|
||||
memset(&window, 0, sizeof(struct conky_window));
|
||||
}
|
||||
|
||||
static void init_window(lua::state &l, bool own)
|
||||
static void init_window(lua::state &l __attribute__((unused)), bool own)
|
||||
{
|
||||
// own is unused if OWN_WINDOW is not defined
|
||||
(void) own;
|
||||
@ -860,7 +860,6 @@ static void init_window(lua::state &l, bool own)
|
||||
ButtonPressMask | ButtonReleaseMask) : 0)
|
||||
#endif
|
||||
);
|
||||
if(&l){}//make sure compiler doesn't complain about unused 'l' when compiled without OWN_WINDOW
|
||||
}
|
||||
|
||||
static Window find_subwindow(Window win, int w, int h)
|
||||
|
Loading…
Reference in New Issue
Block a user