Previously, compiling wmcdplay caused a large number of warnings of the form "deprecated conversion from string constant to ‘char*’". This was fixed by changing "char *" declarations to "const char *", especially in the .xpm files, and using "const_cast" as needed when an external library expected a non-const.
		
			
				
	
	
		
			72 lines
		
	
	
	
		
			4.4 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			72 lines
		
	
	
	
		
			4.4 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
/* XPM */
 | 
						|
static const char * cdplayer_xpm[] = {
 | 
						|
"64 64 5 1",
 | 
						|
" 	c None",
 | 
						|
"0	c #414141",
 | 
						|
"1	c #000000",
 | 
						|
"2	c #C7C3C7",
 | 
						|
"3	c #9E9A9E",
 | 
						|
"                                                                ",
 | 
						|
"                                                                ",
 | 
						|
"                                                                ",
 | 
						|
"                                                                ",
 | 
						|
"                                                                ",
 | 
						|
"     000000000000000000000000000000000000000000000000000000     ",
 | 
						|
"     011111111111111111111111111111111111111111111111111112     ",
 | 
						|
"     011111111111111111111111111111111111111111111111111112     ",
 | 
						|
"     011111111111111111111111111111111111111111111111111112     ",
 | 
						|
"     011111111111111111111111111111111111111111111111111112     ",
 | 
						|
"     011111111111111111111111111111111111111111111111111112     ",
 | 
						|
"     011111111111111111111111111111111111111111111111111112     ",
 | 
						|
"     011111111111111111111111111111111111111111111111111112     ",
 | 
						|
"     011111111111111111111111111111111111111111111111111112     ",
 | 
						|
"     011111111111111111111111111111111111111111111111111112     ",
 | 
						|
"     011111111111111111111111111111111111111111111111111112     ",
 | 
						|
"     011111111111111111111111111111111111111111111111111112     ",
 | 
						|
"     011111111111111111111111111111111111111111111111111112     ",
 | 
						|
"     011111111111111111111111111111111111111111111111111112     ",
 | 
						|
"     222222222222222222222222222222222222222222222222222222     ",
 | 
						|
"                                                                ",
 | 
						|
"                                                                ",
 | 
						|
"      2222222222222222222222   222222222222222222222    222     ",
 | 
						|
"      0333333333333333333330   233333333333333333330   2330     ",
 | 
						|
"       033333333333333333330   23333333333333333330   23330     ",
 | 
						|
"        03333333333333333330   2333333333333333330   233330     ",
 | 
						|
"         0333333333333333330   233333333333333330   2333330     ",
 | 
						|
"     22   033333333333333330   23333333333333330   23333330     ",
 | 
						|
"     232   03333333333333330   2333333333333330   233333330     ",
 | 
						|
"     2332   0333333333333330   233333333333330   2333333330     ",
 | 
						|
"     23332   033333333333330   23333333333330   23333333330     ",
 | 
						|
"     233332   03333333333330   2333333333330   233333333330     ",
 | 
						|
"     2333332   0333333333330   233333333330   2333333333330     ",
 | 
						|
"     23333332   033333333330   23333333330   23333333333330     ",
 | 
						|
"     233333332   03333333330   2333333330   233333333333330     ",
 | 
						|
"     2333333332   0333333330   233333330   2333333333333330     ",
 | 
						|
"     23333333332   033333330   23333330   23333333333333330     ",
 | 
						|
"     233333333332   03333330   2333330    23333333333333330     ",
 | 
						|
"     2333333333332   0000000   000000     00000000000000000     ",
 | 
						|
"     23333333333332                                             ",
 | 
						|
"     233333333333330                                            ",
 | 
						|
"     23333333333330                                             ",
 | 
						|
"     2333333333330   2222220   0000000000000000000000000000     ",
 | 
						|
"     233333333330   23333330   0111111111111111111111111112     ",
 | 
						|
"     23333333330   233333330   0111111111111111111111111112     ",
 | 
						|
"     2333333330   2333333330   0111111111111111111111111112     ",
 | 
						|
"     233333330   23333333330   0111111111111111111111111112     ",
 | 
						|
"     23333330   233333333330   0111111111111111111111111112     ",
 | 
						|
"     2333330   2333333333330   0111111111111111111111111112     ",
 | 
						|
"     233330   23333333333330   0111111111111111111111111112     ",
 | 
						|
"     23330   233333333333330   0111111111111111111111111112     ",
 | 
						|
"     2330   2333333333333330   0111111111111111111111111112     ",
 | 
						|
"     230   23333333333333330   0111111111111111111111111112     ",
 | 
						|
"     20   233333333333333330   0111111111111111111111111112     ",
 | 
						|
"         2333333333333333330   0111111111111111111111111112     ",
 | 
						|
"        23333333333333333330   0111111111111111111111111112     ",
 | 
						|
"       233333333333333333330   0111111111111111111111111112     ",
 | 
						|
"      2333333333333333333330   0111111111111111111111111112     ",
 | 
						|
"      0000000000000000000000   2222222222222222222222222222     ",
 | 
						|
"                                                                ",
 | 
						|
"                                                                ",
 | 
						|
"                                                                ",
 | 
						|
"                                                                ",
 | 
						|
"                                                                "};
 |