commit | c53a886ba86546ea14866c7c9a4d3ea25e8c39ff | [log] [tgz] |
---|---|---|
author | Leo Liu <leo.liu@amd.com> | Sun Jan 10 11:15:38 2021 -0500 |
committer | Leo Liu <leo.liu@amd.com> | Mon Jan 11 18:42:18 2021 -0500 |
tree | d32e588952dd4dea8d596930cd6b634ac2804dc9 | |
parent | 059ae7cb923a17a2aae36ad107be3a1881085464 [diff] |
frontends/omx: fix build warning From code path, it's easy to see that the variable is only used with condition, and the variable gets initialized with the same condition before getting used, but we can initialize it when defined to avoid the warning. Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8404>