| Summary: | Remove static vm_error and vm_event from SDL_x11modes.c | ||
|---|---|---|---|
| Product: | SDL | Reporter: | tomwardio |
| Component: | video | Assignee: | 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. | ||
Patch added, thanks! https://hg.libsdl.org/SDL/rev/64ec7aae69e3 |
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]