From 8e8356e3dccc24c30c4b8765b5a023cd03ff3de5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marcin=20=C5=9Alusarz?= Date: Thu, 30 Jul 2020 16:22:53 +0200 Subject: [PATCH] intel/compiler: mark debug constant as const MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Should quiet Coverity's "'Constant' variable guards dead code". Signed-off-by: Marcin Ślusarz Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/compiler/brw_interpolation_map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++) { -- 2.30.2