objects/screen.c: fix warning about unused var: "found" (#943)

This commit is contained in:
Daniel Hahler 2016-06-04 01:38:44 +02:00
parent 270baeb153
commit 4e35d1fdd7
1 changed files with 0 additions and 1 deletions

View File

@ -255,7 +255,6 @@ screen_scan_randr_monitors(lua_State *L, screen_array_t *screens)
xcb_randr_get_monitors_cookie_t monitors_c = xcb_randr_get_monitors(globalconf.connection, globalconf.screen->root, 1); xcb_randr_get_monitors_cookie_t monitors_c = xcb_randr_get_monitors(globalconf.connection, globalconf.screen->root, 1);
xcb_randr_get_monitors_reply_t *monitors_r = xcb_randr_get_monitors_reply(globalconf.connection, monitors_c, NULL); xcb_randr_get_monitors_reply_t *monitors_r = xcb_randr_get_monitors_reply(globalconf.connection, monitors_c, NULL);
xcb_randr_monitor_info_iterator_t monitor_iter; xcb_randr_monitor_info_iterator_t monitor_iter;
bool found = false;
for(monitor_iter = xcb_randr_get_monitors_monitors_iterator(monitors_r); for(monitor_iter = xcb_randr_get_monitors_monitors_iterator(monitors_r);
monitor_iter.rem; xcb_randr_monitor_info_next(&monitor_iter)) monitor_iter.rem; xcb_randr_monitor_info_next(&monitor_iter))