From: Icecream95 Date: Sat, 1 Feb 2020 00:50:35 +0000 (+1300) Subject: panfrost: Fix non-debug builds X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b74212e70153f3a199a60a95d003208144f5fac9;p=mesa.git panfrost: Fix non-debug builds For non-debug builds, where assertions are compiled out, GCC complains about the end of the non-void function panfrost_translate_channel_width being reached. Fixes: 226c1efe9a8 ("panfrost: Add more info to some assertions") Reported-by: Piotr Oniszczuk Suggested-by: Boris Brezillon Reviewed-by: Boris Brezillon Tested-by: Marge Bot Part-of: --- diff --git a/src/gallium/drivers/panfrost/pan_format.c b/src/gallium/drivers/panfrost/pan_format.c index fd9d0eb973d..b4fb38fefed 100644 --- a/src/gallium/drivers/panfrost/pan_format.c +++ b/src/gallium/drivers/panfrost/pan_format.c @@ -101,6 +101,7 @@ panfrost_translate_channel_width(unsigned size) default: { fprintf(stderr, "Invalid width: %d\n", size); assert(0); + return 0; } } }