mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
egl: Fix uninitialized variable warning
Fedora's gcc 12.2.1 says:
../src/egl/main/eglapi.c: In function ‘eglDupNativeFenceFDANDROID’:
../src/egl/main/eglapi.c:2268:11: warning: ‘ret’ may be used uninitialized [-Wmaybe-uninitialized]
2268 | EGLint ret;
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19913>
This commit is contained in:
parent
90df5c3b5f
commit
3732c7aa63
1 changed files with 1 additions and 1 deletions
|
|
@ -2265,7 +2265,7 @@ eglDupNativeFenceFDANDROID(EGLDisplay dpy, EGLSync sync)
|
|||
{
|
||||
_EGLDisplay *disp = _eglLockDisplay(dpy);
|
||||
_EGLSync *s = _eglLookupSync(sync, disp);
|
||||
EGLint ret;
|
||||
EGLint ret = EGL_NO_NATIVE_FENCE_FD_ANDROID;
|
||||
|
||||
_EGL_FUNC_START(disp, EGL_OBJECT_SYNC_KHR, s);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue