Bug 12962

Summary: XPM files without static const generated
Product: xorg Reporter: arne.schmitz
Component: Lib/XpmAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED WONTFIX QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: low CC: jesserayadkins
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description arne.schmitz 2007-10-26 11:05:19 UTC
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 * ...
Comment 1 Alan Coopersmith 2007-11-05 18:18:09 UTC
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.
Comment 2 Jesse Adkins 2010-11-30 22:17:45 UTC
(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.