i965: Use unreachable() to silence warning.
authorMatt Turner <mattst88@gmail.com>
Sat, 30 Aug 2014 16:42:18 +0000 (09:42 -0700)
committerMatt Turner <mattst88@gmail.com>
Sun, 31 Aug 2014 04:00:28 +0000 (21:00 -0700)
brw_meta_fast_clear.c:211:17: warning: 'x_scaledown' may be used
uninitialized in this function [-Wmaybe-uninitialized]
    unsigned int x_scaledown, y_scaledown;

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_meta_fast_clear.c

index 4fb20d74e2978f1fed9393e44d09c9a402342182..bcc8827709fbf8458080e027504044b5df661536 100644 (file)
@@ -289,8 +289,7 @@ get_fast_clear_rect(struct brw_context *brw, struct gl_framebuffer *fb,
          x_scaledown = 2;
          break;
       default:
-         assert(!"Unexpected sample count for fast clear");
-         break;
+         unreachable("Unexpected sample count for fast clear");
       }
       y_scaledown = 2;
       x_align = x_scaledown * 2;