Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gl: fix sometimes-uninitialized warning #1815

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

svenvh
Copy link
Member

@svenvh svenvh commented Sep 20, 2023

Bail out when hitting the default case, so that we don't attempt to access the uninitialized error variable.

Bail out when hitting the default case, so that we don't attempt to
access the uninitialized `error` variable.

Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
Copy link
Contributor

@bashbaug bashbaug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No reason to wait to merge this.

@bashbaug bashbaug merged commit f396850 into KhronosGroup:main Oct 2, 2023
6 checks passed
@svenvh svenvh deleted the gl-sometimes-uninit branch October 3, 2023 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants