Please describe the problem: With g++ >= 4.2 XPM files generated with the libxpm will throw warnings: warning: deprecated conversion from string constant to 'char*' Steps to reproduce: 1. Save a XPM with the gimp 2. Include the XPM in a small C-program 3. Compile the program with gcc >= 4.2 Actual results: warning: deprecated conversion from string constant to 'char*' Expected results: no warning Does this happen every time? Yes Other information: The XPM files should export as static const char * ... instead of static char * ...
The XPM format definition specifies "static char*" and the current libXpm code looks for that string, so adding const would require updating the spec and generating XPM's that break old parsers.
(In reply to comment #1) > The XPM format definition specifies "static char*" and the current libXpm code > looks for that string, so adding const would require updating the spec and > generating XPM's that break old parsers. This sounds like an effective WONTFIX. So closing. Reopen if I'm wrong.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.