From b74212e70153f3a199a60a95d003208144f5fac9 Mon Sep 17 00:00:00 2001 From: Icecream95 Date: Sat, 1 Feb 2020 13:50:35 +1300 Subject: [PATCH] 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: --- src/gallium/drivers/panfrost/pan_format.c | 1 + 1 file changed, 1 insertion(+) 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; } } } -- 2.30.2