Bug 12962 - XPM files without static const generated
Summary: XPM files without static const generated
Status: RESOLVED WONTFIX
Alias: None
Product: xorg
Classification: Unclassified
Component: Lib/Xpm (show other bugs)
Version: unspecified
Hardware: Other All
: low normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-26 11:05 UTC by arne.schmitz
Modified: 2010-11-30 22:17 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

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.