svga: init fill variable to avoid compiler warning
authorBrian Paul <brianp@vmware.com>
Fri, 1 Mar 2019 20:55:30 +0000 (13:55 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 4 Mar 2019 18:48:47 +0000 (11:48 -0700)
MinGW release builds warns about use of a possbily uninitialized
variable here.

Reviewed-by: Neha Bhende <bhenden@vmware.com>
Reviewed-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
src/gallium/drivers/svga/svga_pipe_rasterizer.c

index 1dbf5b6debb59eb07e9946fe75038fcfea404b73..7d5936fa1ece2aedf1c75ef7748922bb4dfe625d 100644 (file)
@@ -257,7 +257,7 @@ svga_create_rasterizer_state(struct pipe_context *pipe,
    {
       int fill_front = templ->fill_front;
       int fill_back = templ->fill_back;
-      int fill;
+      int fill = PIPE_POLYGON_MODE_FILL;
       boolean offset_front = util_get_offset(templ, fill_front);
       boolean offset_back = util_get_offset(templ, fill_back);
       boolean offset = FALSE;