[Mesa-dev] [PATCH 10/23] gallium/aux/util/u_format_rgtc.c: Fix a number of -Wunused-param warnings
Gert Wollny
gw.fossdev at gmail.com
Sun Nov 12 13:55:42 UTC 2017
Decorate the params accordingly with "UNUSED".
---
src/gallium/auxiliary/util/u_format_rgtc.c | 26 ++++++++++++++++++--------
1 file changed, 18 insertions(+), 8 deletions(-)
diff --git a/src/gallium/auxiliary/util/u_format_rgtc.c b/src/gallium/auxiliary/util/u_format_rgtc.c
index 1596917435..82ddcb0183 100644
--- a/src/gallium/auxiliary/util/u_format_rgtc.c
+++ b/src/gallium/auxiliary/util/u_format_rgtc.c
@@ -63,8 +63,8 @@ util_format_rgtc1_unorm_unpack_rgba_8unorm(uint8_t *dst_row, unsigned dst_stride
}
void
-util_format_rgtc1_unorm_pack_rgba_8unorm(uint8_t *dst_row, unsigned dst_stride, const uint8_t *src_row,
- unsigned src_stride, unsigned width, unsigned height)
+util_format_rgtc1_unorm_pack_rgba_8unorm(uint8_t *dst_row, unsigned dst_stride, const uint8_t *src_row,
+ unsigned src_stride, unsigned width, unsigned height)
{
const unsigned bw = 4, bh = 4, bytes_per_block = 8;
unsigned x, y, i, j;
@@ -144,19 +144,24 @@ util_format_rgtc1_unorm_fetch_rgba_float(float *dst, const uint8_t *src, unsigne
}
void
-util_format_rgtc1_snorm_fetch_rgba_8unorm(uint8_t *dst, const uint8_t *src, unsigned i, unsigned j)
+util_format_rgtc1_snorm_fetch_rgba_8unorm(uint8_t *dst UNUSED, const uint8_t *src UNUSED,
+ unsigned i UNUSED, unsigned j UNUSED)
{
fprintf(stderr,"%s\n", __func__);
}
void
-util_format_rgtc1_snorm_unpack_rgba_8unorm(uint8_t *dst_row, unsigned dst_stride, const uint8_t *src_row, unsigned src_stride, unsigned width, unsigned height)
+util_format_rgtc1_snorm_unpack_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)
{
fprintf(stderr,"%s\n", __func__);
}
void
-util_format_rgtc1_snorm_pack_rgba_8unorm(uint8_t *dst_row, unsigned dst_stride, const uint8_t *src_row, unsigned src_stride, unsigned width, unsigned height)
+util_format_rgtc1_snorm_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)
{
fprintf(stderr,"%s\n", __func__);
}
@@ -350,19 +355,24 @@ util_format_rgtc2_unorm_fetch_rgba_float(float *dst, const uint8_t *src, unsigne
void
-util_format_rgtc2_snorm_fetch_rgba_8unorm(uint8_t *dst, const uint8_t *src, unsigned i, unsigned j)
+util_format_rgtc2_snorm_fetch_rgba_8unorm(uint8_t *dst UNUSED, const uint8_t *src UNUSED,
+ unsigned i UNUSED, unsigned j UNUSED)
{
fprintf(stderr,"%s\n", __func__);
}
void
-util_format_rgtc2_snorm_unpack_rgba_8unorm(uint8_t *dst_row, unsigned dst_stride, const uint8_t *src_row, unsigned src_stride, unsigned width, unsigned height)
+util_format_rgtc2_snorm_unpack_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)
{
fprintf(stderr,"%s\n", __func__);
}
void
-util_format_rgtc2_snorm_pack_rgba_8unorm(uint8_t *dst_row, unsigned dst_stride, const uint8_t *src_row, unsigned src_stride, unsigned width, unsigned height)
+util_format_rgtc2_snorm_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)
{
fprintf(stderr,"%s\n", __func__);
}
--
2.13.6
More information about the mesa-dev
mailing list