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.
		
			
				
	
	
		
			10 lines
		
	
	
	
		
			312 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
	
		
			312 B
		
	
	
	
		
			C
		
	
	
	
	
	
/* XPM */
 | 
						|
static const char * ledsym_xpm[] = {
 | 
						|
"35 5 2 1",
 | 
						|
"       c #000000",
 | 
						|
"0      c #00ff00 s led_color_high",
 | 
						|
"00000 00000 0     00 00   0     0  ",
 | 
						|
"00000 00000 000   00 00  000   000 ",
 | 
						|
"00000 00000 00000 00 00 00000 00000",
 | 
						|
"00000 00000 000   00 00            ",
 | 
						|
"00000 00000 0     00 00 00000 00000"};
 |