[Mesa-dev] [PATCH 18/23] mesa/main/texcompress_s3tc_tmp.h: Fix two -Wparam-unused warnings.

Gert Wollny gw.fossdev at gmail.com
Sun Nov 12 13:55:50 UTC 2017


Decorate the params accordingly with "UNUSED".
---
 src/mesa/main/texcompress_s3tc_tmp.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/main/texcompress_s3tc_tmp.h b/src/mesa/main/texcompress_s3tc_tmp.h
index 61630f2475..c02f6242fc 100644
--- a/src/mesa/main/texcompress_s3tc_tmp.h
+++ b/src/mesa/main/texcompress_s3tc_tmp.h
@@ -182,8 +182,8 @@ static void fetch_2d_texel_rgba_dxt5(GLint srcRowStride, const GLubyte *pixdata,
 
 #define ALPHACUT 127
 
-static void fancybasecolorsearch( GLubyte *blkaddr, GLubyte srccolors[4][4][4], GLubyte *bestcolor[2],
-                           GLint numxpixels, GLint numypixels, GLint type, GLboolean haveAlpha)
+static void fancybasecolorsearch( GLubyte *blkaddr UNUSED, GLubyte srccolors[4][4][4], GLubyte *bestcolor[2],
+                           GLint numxpixels, GLint numypixels, GLint type UNUSED, GLboolean haveAlpha UNUSED)
 {
    /* use same luminance-weighted distance metric to determine encoding as for finding the base colors */
 
-- 
2.13.6



More information about the mesa-dev mailing list