clang: Fix static analysis warnings from clang

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
This commit is contained in:
Ben Widawsky
2012-08-30 14:17:01 -07:00
parent 54ed938d39
commit bc62567b77
6 changed files with 11 additions and 12 deletions
+1
View File
@@ -842,6 +842,7 @@ static void ricochet(
set.flags = I915_SET_COLORKEY_NONE;
ret = drmCommandWrite(gfx_fd, DRM_I915_SET_SPRITE_COLORKEY, &set,
sizeof(set));
assert(ret == 0);
// Set up sprite output dimensions, initial position, etc.
if (out_w > prim_width / 2)