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 3007

Summary: Compiler warnings: "warning: initialization discards ‘const’ qualifier from pointer target type"
Product: SDL Reporter: Martin Gerhardy <martin.gerhardy>
Component: eventsAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: trivial    
Priority: P2 CC: icculus
Version: HG 2.0Keywords: target-2.0.4
Hardware: x86_64   
OS: Linux   
Attachments: Patch that fixes the compile warnings

Description Martin Gerhardy 2015-06-12 08:02:01 UTC
Created attachment 2174 [details]
Patch that fixes the compile warnings

/home/mgerhardy/dev/caveexpress/src/libs/SDL/src/core/linux/SDL_udev.c:36:1: warning: initialization discards ‘const’ qualifier from pointer target type
 static char* SDL_UDEV_LIBS[] = { "libudev.so.1", "libudev.so.0" };

/home/mgerhardy/dev/caveexpress/src/libs/SDL/src/core/linux/SDL_evdev.c:345:5: warning: initialization discards ‘const’ qualifier from pointer target type
     "/proc/self/fd/0",
     ^
Comment 1 Ryan C. Gordon 2015-06-12 16:05:30 UTC
This patch is now https://hg.libsdl.org/SDL/rev/64f0929bcd2e, thanks!

--ryan.