We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3939 - Remove static vm_error and vm_event from SDL_x11modes.c
Summary: Remove static vm_error and vm_event from SDL_x11modes.c
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.7
Hardware: x86_64 Linux
: P2 trivial
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-03 15:47 UTC by tomwardio
Modified: 2017-11-05 05:07 UTC (History)
0 users

See Also:


Attachments
Patch for fixing error. (1.01 KB, patch)
2017-11-03 15:47 UTC, tomwardio
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tomwardio 2017-11-03 15:47:54 UTC
Created attachment 3063 [details]
Patch for fixing error.

Remove static int vm_error and vm_event, use local variables instead.

This fixes unused variable errors when compiling with SDL_VIDEO_DRIVER_X11_XINERAMA undefined.

src/video/x11/SDL_x11modes.c:505:22: error: unused variable 'vm_error' [-Werror,-Wunused-variable]

src/video/x11/SDL_x11modes.c:505:12: error: unused variable 'vm_event' [-Werror,-Wunused-variable]
Comment 1 Sam Lantinga 2017-11-05 05:07:06 UTC
Patch added, thanks!
https://hg.libsdl.org/SDL/rev/64ec7aae69e3