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

Summary: Remove static vm_error and vm_event from SDL_x11modes.c
Product: SDL Reporter: tomwardio
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: trivial    
Priority: P2    
Version: 2.0.7   
Hardware: x86_64   
OS: Linux   
Attachments: Patch for fixing error.

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