diff options
author | Icecream95 <[email protected]> | 2020-02-01 13:50:35 +1300 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-02-02 15:33:17 +0000 |
commit | b74212e70153f3a199a60a95d003208144f5fac9 (patch) | |
tree | 0a0cbe75db4bf461ef6ddce118e311a28c2441c7 /src | |
parent | d7fe9af6202413aa4e6f0f53d89577ed8ea80027 (diff) |
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 <[email protected]>
Reviewed-by: Boris Brezillon <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3665>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3665>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_format.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } } } |