fix a few warnings/places where the clang static analyzer complains

This commit is contained in:
Michael Stapelberg
2012-08-05 16:34:38 +02:00
parent cab8e3c46f
commit 8a1c8115ca
9 changed files with 20 additions and 22 deletions

View File

@ -1260,6 +1260,9 @@ bool con_fullscreen_permits_focusing(Con *con) {
while (fs && fs->fullscreen_mode == CF_NONE)
fs = fs->parent;
/* fs must be non-NULL since the workspace con doesnt have CF_NONE and
* there always has to be a workspace con in the hierarchy. */
assert(fs != NULL);
/* The most common case is we hit the workspace level. In this
* situation, changing focus is also harmless. */
assert(fs->fullscreen_mode != CF_NONE);