mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-06 08:00:34 +02:00
This small patch fixes an issue where 'addr' is used uninitialized if
the assert gets removed due to compiling release code and thus
returning uninitialized 'addr'
v2: Modified based on initial review:
a) No need to initialize the 'addr' and 'ret' variables
b) Fix 'ret' variable to be proper type based on hw->get_mem return value
v3: Modified based on additional review:
a) Since both the simulator and mesa have their own version of
'unreachable()' and we cannot use ASSERT for the 'ret' value here,
just use a (void) ret after the assert
Reviewed-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29434>
|
||
|---|---|---|
| .. | ||
| meson.build | ||
| v3d_simulator.c | ||
| v3d_simulator.h | ||
| v3d_simulator_wrapper.cpp | ||
| v3d_simulator_wrapper.h | ||
| v3dx_simulator.c | ||
| v3dx_simulator.h | ||