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

X11: Fix unused variables warning when touch is disabled #83242

Closed
wants to merge 1 commit into from
Closed

X11: Fix unused variables warning when touch is disabled #83242

wants to merge 1 commit into from

Conversation

exyxz
Copy link
Contributor

@exyxz exyxz commented Oct 13, 2023

For some reason, someone at Godot team forgot to fix the ones that variables goes unused when they disable touch.

@exyxz exyxz requested a review from a team as a code owner October 13, 2023 07:11
Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

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

This looks correct, but I would suggest instead to move the definition of index and pos in the two case blocks that handle touch input. They shouldn't need to be computed for the other types of events.

Note: Please make modifications by amending the commit, and force pushing the changes, so that it stays as a single commit (see PR workflow).

@akien-mga akien-mga changed the title Add TOUCH_ENABLED constant to unused variables X11: Fix unused variables warnings when touch is disabled Oct 13, 2023
@akien-mga akien-mga changed the title X11: Fix unused variables warnings when touch is disabled X11: Fix unused variables warning when touch is disabled Oct 13, 2023
@akien-mga akien-mga added this to the 4.2 milestone Oct 13, 2023
@exyxz exyxz deleted the branch godotengine:master October 13, 2023 12:30
@exyxz exyxz closed this Oct 13, 2023
@exyxz exyxz deleted the master branch October 13, 2023 12:30
@exyxz exyxz restored the master branch October 13, 2023 12:31
@AThousandShips AThousandShips removed this from the 4.2 milestone Oct 13, 2023
@akien-mga
Copy link
Member

Superseded by #83265.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants