[Mesa-dev] [PATCH 07/23] gallium/aux/util/u_format_etc.c: Fix eight -Wunused-param warnings

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


Decorate the parameters accordingly with "UNUSED".
---
 src/gallium/auxiliary/util/u_format_etc.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/gallium/auxiliary/util/u_format_etc.c b/src/gallium/auxiliary/util/u_format_etc.c
index 63e03ff5cc..8da933cf3d 100644
--- a/src/gallium/auxiliary/util/u_format_etc.c
+++ b/src/gallium/auxiliary/util/u_format_etc.c
@@ -17,7 +17,9 @@ util_format_etc1_rgb8_unpack_rgba_8unorm(uint8_t *dst_row, unsigned dst_stride,
 }
 
 void
-util_format_etc1_rgb8_pack_rgba_8unorm(uint8_t *dst_row, unsigned dst_stride, const uint8_t *src_row, unsigned src_stride, unsigned width, unsigned height)
+util_format_etc1_rgb8_pack_rgba_8unorm(uint8_t *dst_row UNUSED, unsigned dst_stride UNUSED, 
+									   const uint8_t *src_row  UNUSED, unsigned src_stride  UNUSED, 
+									   unsigned width  UNUSED, unsigned height UNUSED)
 {
    assert(0);
 }
@@ -57,7 +59,9 @@ util_format_etc1_rgb8_unpack_rgba_float(float *dst_row, unsigned dst_stride, con
 }
 
 void
-util_format_etc1_rgb8_pack_rgba_float(uint8_t *dst_row, unsigned dst_stride, const float *src_row, unsigned src_stride, unsigned width, unsigned height)
+util_format_etc1_rgb8_pack_rgba_float(uint8_t *dst_row  UNUSED, unsigned dst_stride UNUSED, 
+									  const float *src_row  UNUSED, unsigned src_stride  UNUSED, 
+									  unsigned width UNUSED, unsigned height UNUSED)
 {
    assert(0);
 }
-- 
2.13.6



More information about the mesa-dev mailing list