Check was done with scan-build from the LLVM suite. The remaining reports are false
positives and have been reported to llvm:
http://llvm.org/bugs/show_bug.cgi?id=4358
http://llvm.org/bugs/show_bug.cgi?id=4359
new = CUR_TABLE[current_col][++current_row];
break;
+ /* To make static analyzers happy: */
+ default:
+ return;
}
/* Remove it from the old container and put it into the new one */
new = CUR_TABLE[current_col][++current_row];
break;
+ /* To make static analyzers happy: */
+ default:
+ return;
}
LOG("old = %d,%d and new = %d,%d\n", container->col, container->row, new->col, new->row);
container->rowspan++;
break;
}
+ /* To make static analyzers happy: */
+ default:
+ return;
}
render_layout(conn);
LOG("window is %08x / %s\n", client->child, client->name);
- int base_width = 0, base_height = 0,
- min_width = 0, min_height = 0;
+ int base_width = 0, base_height = 0;
/* base_width/height are the desired size of the window.
We check if either the program-specified size or the program-specified
base_height = size_hints.min_height;
}
- if (size_hints.flags & XCB_SIZE_HINT_P_MIN_SIZE) {
- min_width = size_hints.min_width;
- min_height = size_hints.min_height;
- } else if (size_hints.flags & XCB_SIZE_HINT_P_SIZE) {
- min_width = size_hints.base_width;
- min_height = size_hints.base_height;
- }
-
double width = client->rect.width - base_width;
double height = client->rect.height - base_height;
/* Convert numerator/denominator to a double */
xcb_configure_window(conn, stack_win->window, mask, values);
}
- /* Reconfigure the currently focused client, if necessary. It is the only visible one */
- client = container->currently_focused;
-
/* Render the decorations of all clients */
CIRCLEQ_FOREACH(client, &(container->clients), clients) {
/* If the client is in fullscreen mode, it does not get reconfigured */
Client *get_matching_client(xcb_connection_t *conn, const char *window_classtitle,
Client *specific) {
char *to_class, *to_title, *to_title_ucs = NULL;
- int to_title_ucs_len;
+ int to_title_ucs_len = 0;
Client *matching = NULL;
to_class = sstrdup(window_classtitle);