From: Marcin Ślusarz Date: Thu, 30 Jul 2020 14:22:53 +0000 (+0200) Subject: intel/compiler: mark debug constant as const X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8e8356e3dccc24c30c4b8765b5a023cd03ff3de5;p=mesa.git intel/compiler: mark debug constant as const Should quiet Coverity's "'Constant' variable guards dead code". Signed-off-by: Marcin Ślusarz Reviewed-by: Lionel Landwerlin Part-of: --- diff --git a/src/intel/compiler/brw_interpolation_map.c b/src/intel/compiler/brw_interpolation_map.c index e7c3919f41f..a9686e8c59f 100644 --- a/src/intel/compiler/brw_interpolation_map.c +++ b/src/intel/compiler/brw_interpolation_map.c @@ -89,7 +89,7 @@ brw_setup_vue_interpolation(struct brw_vue_map *vue_map, nir_shader *nir, } } - bool debug = false; + const bool debug = false; if (debug) { fprintf(stderr, "VUE map:\n"); for (int i = 0; i < vue_map->num_slots; i++) {