Module: Mesa Branch: master Commit: 8e8356e3dccc24c30c4b8765b5a023cd03ff3de5 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8e8356e3dccc24c30c4b8765b5a023cd03ff3de5
Author: Marcin Ślusarz <[email protected]> Date: Thu Jul 30 16:22:53 2020 +0200 intel/compiler: mark debug constant as const Should quiet Coverity's "'Constant' variable guards dead code". Signed-off-by: Marcin Ślusarz <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6126> --- 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++) { _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
