diff options
author | Kai Wasserbäch <kai@dev.carbon-project.org> | 2022-09-17 13:25:53 +0200 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-09-19 22:02:16 +0000 |
commit | e52d3d5f1c355c602072252dc4bc1ef8fc99d5b2 (patch) | |
tree | b6c61c50e6a9a1a94bd8c8199a586137d6dedb2b /src/util | |
parent | a96151f64533e0d6c7134aafcc10f0cdf87227ac (diff) |
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>
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/format/u_format.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/format/u_format.c b/src/util/format/u_format.c index c071250d874..b8100fcd985 100644 --- a/src/util/format/u_format.c +++ b/src/util/format/u_format.c @@ -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 || |