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 - Compiler warnings: "warning: initialization discards ‘const’ qualifier from pointer target type"
Summary: Compiler warnings: "warning: initialization discards ‘const’ qualifier from p...
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: HG 2.0
Hardware: x86_64 Linux
: P2 trivial
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords: target-2.0.4
Depends on:
Blocks:
 
Reported: 2015-06-12 08:02 UTC by Martin Gerhardy
Modified: 2015-06-12 16:05 UTC (History)
1 user (show)

See Also:


Attachments
Patch that fixes the compile warnings (1.46 KB, patch)
2015-06-12 08:02 UTC, Martin Gerhardy
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.