From: Martin Peres Date: Fri, 5 Jun 2015 12:03:19 +0000 (+0300) Subject: main/version: make sure all the output variables get set in get_gl_override X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=184e4de3a126fa21945fe59f68b8a29977919fc4;p=mesa.git main/version: make sure all the output variables get set in get_gl_override This fixes 2 warnings in gcc 5.1. Reviewed-by: Brian Paul Reviewed-by: Marek Olšák Signed-off-by: Martin Peres --- diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c index 409e5ae3cba..60c76040e2a 100644 --- a/src/mesa/main/version.c +++ b/src/mesa/main/version.c @@ -63,7 +63,7 @@ get_gl_override(gl_api api, int *version, bool *fwd_context, static bool compat_suffix = false; if (api == API_OPENGLES) - return; + goto exit; if (override_version < 0) { override_version = 0; @@ -93,6 +93,7 @@ get_gl_override(gl_api api, int *version, bool *fwd_context, } } +exit: *version = override_version; *fwd_context = fc_suffix; *compat_context = compat_suffix;