From: Brian Paul Date: Fri, 1 Mar 2019 20:55:30 +0000 (-0700) Subject: svga: init fill variable to avoid compiler warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=999db9ac51b312f8d18f5a39025f1b0dabddd073;p=mesa.git svga: init fill variable to avoid compiler warning MinGW release builds warns about use of a possbily uninitialized variable here. Reviewed-by: Neha Bhende Reviewed-by: Mathias Fröhlich --- diff --git a/src/gallium/drivers/svga/svga_pipe_rasterizer.c b/src/gallium/drivers/svga/svga_pipe_rasterizer.c index 1dbf5b6debb..7d5936fa1ec 100644 --- a/src/gallium/drivers/svga/svga_pipe_rasterizer.c +++ b/src/gallium/drivers/svga/svga_pipe_rasterizer.c @@ -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;