From: Ian Romanick Date: Wed, 21 Feb 2018 02:42:02 +0000 (-0800) Subject: isl: Silence unused parameter warnings in __gen_combine_address implementations X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=50bf1868295ecd5ef5d9673d4f5c1259b9fa2b3f;p=mesa.git isl: Silence unused parameter warnings in __gen_combine_address implementations Reduces my build from 1808 warnings to 1772 warnings by silencing 36 instances of things like ../../SOURCE/master/src/intel/isl/isl_emit_depth_stencil.c: In function ‘__gen_combine_address’: ../../SOURCE/master/src/intel/isl/isl_emit_depth_stencil.c:30:29: warning: unused parameter ‘data’ [-Wunused-parameter] __gen_combine_address(void *data, void *loc, uint64_t addr, uint32_t delta) ^~~~ ../../SOURCE/master/src/intel/isl/isl_emit_depth_stencil.c:30:41: warning: unused parameter ‘loc’ [-Wunused-parameter] __gen_combine_address(void *data, void *loc, uint64_t addr, uint32_t delta) ^~~ Signed-off-by: Ian Romanick Reviewed-by: Samuel Iglesias Gonsálvez --- diff --git a/src/intel/isl/isl_emit_depth_stencil.c b/src/intel/isl/isl_emit_depth_stencil.c index 90ce8893e5b..51b3f005c01 100644 --- a/src/intel/isl/isl_emit_depth_stencil.c +++ b/src/intel/isl/isl_emit_depth_stencil.c @@ -27,7 +27,9 @@ #define __gen_user_data void static uint64_t -__gen_combine_address(void *data, void *loc, uint64_t addr, uint32_t delta) +__gen_combine_address(__attribute__((unused)) void *data, + __attribute__((unused)) void *loc, uint64_t addr, + uint32_t delta) { return addr + delta; } diff --git a/src/intel/isl/isl_surface_state.c b/src/intel/isl/isl_surface_state.c index c205b3d2c0b..1f729f89f4f 100644 --- a/src/intel/isl/isl_surface_state.c +++ b/src/intel/isl/isl_surface_state.c @@ -27,7 +27,9 @@ #define __gen_user_data void static uint64_t -__gen_combine_address(void *data, void *loc, uint64_t addr, uint32_t delta) +__gen_combine_address(__attribute__((unused)) void *data, + __attribute__((unused)) void *loc, uint64_t addr, + uint32_t delta) { return addr + delta; }