summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2020-02-26 17:21:43 -0500
committerMarek Olšák <[email protected]>2020-02-27 22:53:12 -0500
commitad192385e3348b12d15f466225c2792adf42e7e7 (patch)
tree70f0cdb279634e190cc09b331edff86ff3918b90 /src/mesa/main
parent6d7b076166e6a26f68c33ea75b9f9473fc162738 (diff)
mesa: fix 11 warnings
Reviewed-by: Eric Anholt <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3970>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/get.c2
-rw-r--r--src/mesa/main/texcompress_s3tc_tmp.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index 261eaf37323..8325786a396 100644
--- a/src/mesa/main/get.c
+++ b/src/mesa/main/get.c
@@ -1548,6 +1548,8 @@ find_value(const char *func, GLenum pname, void **p, union value *v)
const struct value_desc *d;
int api;
+ *p = NULL;
+
api = ctx->API;
/* We index into the table_set[] list of per-API hash tables using the API's
* value in the gl_api enum. Since GLES 3 doesn't have an API_OPENGL* enum
diff --git a/src/mesa/main/texcompress_s3tc_tmp.h b/src/mesa/main/texcompress_s3tc_tmp.h
index 904c6765261..5dd25222f15 100644
--- a/src/mesa/main/texcompress_s3tc_tmp.h
+++ b/src/mesa/main/texcompress_s3tc_tmp.h
@@ -197,7 +197,7 @@ static void fancybasecolorsearch( UNUSED GLubyte *blkaddr, GLubyte srccolors[4][
GLuint pixerror, pixerrorred, pixerrorgreen, pixerrorblue, pixerrorbest;
GLint colordist, blockerrlin[2][3];
GLubyte nrcolor[2];
- GLint pixerrorcolorbest[3];
+ GLint pixerrorcolorbest[3] = {0};
GLubyte enc = 0;
GLubyte cv[4][4];
GLubyte testcolor[2][3];