[Mesa-dev] [PATCH 17/19] intel/isl: Mark functions used conditionally as UNUSED

Matt Turner mattst88 at gmail.com
Mon Aug 28 21:57:19 UTC 2017


The functions we're marking as UNUSED in isl_surface_state.c are used
only when compiling for particular generations.
---
 src/intel/isl/isl_surface_state.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/isl/isl_surface_state.c b/src/intel/isl/isl_surface_state.c
index e9a3fda568..c6a55ce970 100644
--- a/src/intel/isl/isl_surface_state.c
+++ b/src/intel/isl/isl_surface_state.c
@@ -130,7 +130,7 @@ get_surftype(enum isl_surf_dim dim, isl_surf_usage_flags_t usage)
  * hardware.  Note that this does NOT give you the actual hardware enum values
  * but an index into the isl_to_gen_[hv]align arrays above.
  */
-static struct isl_extent3d
+UNUSED static struct isl_extent3d
 get_image_alignment(const struct isl_surf *surf)
 {
    if (GEN_GEN >= 9) {
-- 
2.13.5



More information about the mesa-dev mailing list