backend-headless: Fix release/debugoptimized build warning with gcc

Fix ‘ret’ used uninitialized.

Signed-off-by: Loïc Molinari <loic.molinari@collabora.com>
This commit is contained in:
Loïc Molinari 2024-02-23 15:35:42 +01:00 committed by Daniel Stone
parent 102b9a4de8
commit 53cc781701
1 changed files with 1 additions and 0 deletions

View File

@ -619,6 +619,7 @@ headless_backend_create(struct weston_compositor *compositor,
break;
default:
weston_log("Error: unsupported renderer\n");
ret = -1;
break;
}