From 999db9ac51b312f8d18f5a39025f1b0dabddd073 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 1 Mar 2019 13:55:30 -0700 Subject: svga: init fill variable to avoid compiler warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MinGW release builds warns about use of a possbily uninitialized variable here. Reviewed-by: Neha Bhende Reviewed-by: Mathias Fröhlich --- src/gallium/drivers/svga/svga_pipe_rasterizer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/drivers/svga') 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; -- cgit v1.2.3