fix: util/format: unused variable ‘desc’ [-Wunused-variable]
Only used in debug builds. Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org> Reviewed-by: Mihai Preda <mhpreda@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18643>
This commit is contained in:
committed by
Marge Bot
parent
a96151f645
commit
e52d3d5f1c
@@ -1354,7 +1354,7 @@ util_format_rgbx_to_rgba(enum pipe_format format)
|
||||
case PIPE_FORMAT_B10G10R10X2_SINT:
|
||||
return PIPE_FORMAT_B10G10R10A2_SINT;
|
||||
default: {
|
||||
const struct util_format_description *desc = util_format_description(format);
|
||||
ASSERTED const struct util_format_description *desc = util_format_description(format);
|
||||
|
||||
/* Assert that the format doesn't contain X instead of A. */
|
||||
assert(desc->colorspace != UTIL_FORMAT_COLORSPACE_ZS ||
|
||||
|
||||
Reference in New Issue
Block a user