<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Folks,</div><div><br></div><div>I am converting a few images into xpm format to be used in vlc. I am using "convert" utility to convert these images:</div><div><br></div><div> $ convert myimg.png myimg.xpm.</div><div><br></div><div>Although the generated xpm file seem to work, I see hundreds of warnings during make:</div><div><br></div><div>warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]</div><div><br></div><div>When I examine checked-out xpm file such as vlc.xpm, I see the first few lines as:</div><div><br></div><div>/* XPM */<br>static const char *const vlc_xpm[] = {<br>/* width height ncolors chars_per_pixel */<br>"32 32 144 2",<br>/* colors */<br>"AA c #9A9A32320202",<br></div><div><br></div><div>However, the ones I generated using the convert utility
has:</div><div><br></div><div>* XPM */<br>static char *bizimg_xpm[] = {<br>/* columns rows colors chars-per-pixel */<br>"32 32 167 2",<br>" c #1A1A17",<br>". c #1B1B17",<br></div><div><br></div><div>I am wondering if there is a different utility that is being used to generate xpm files under vlc or if I just need some extra options on the convert utility.</div><div><br></div><div>Thank you in advance for your help.</div><div><br></div><div>Regards,</div><div>Peter<br></div></div></body></html>