diff lwlink/readfiles.c @ 2:7317fbe024af

Clean up insane number of compiler warnings under -Wall
author lost@l-w.ca
date Thu, 20 Jan 2011 22:39:46 -0700
parents 2c24602be78f
children fdc11ef4115b
line wrap: on
line diff
--- a/lwlink/readfiles.c	Wed Jan 19 22:31:00 2011 -0700
+++ b/lwlink/readfiles.c	Thu Jan 20 22:39:46 2011 -0700
@@ -294,12 +294,12 @@
 				
 				case 0x02:
 					// external symbol reference
-					term = lw_expr_term_create_sym(CURSTR(), 0);
+					term = lw_expr_term_create_sym((char *)CURSTR(), 0);
 					break;
 					
 				case 0x03:
 					// internal symbol reference
-					term = lw_expr_term_create_sym(CURSTR(), 1);
+					term = lw_expr_term_create_sym((char *)CURSTR(), 1);
 					break;
 				
 				case 0x04:
@@ -413,7 +413,7 @@
 		memset(fn -> subs[fn -> nsubs], 0, sizeof(fileinfo_t));
 		fn -> subs[fn -> nsubs] -> filedata = fn -> filedata + cc;
 		fn -> subs[fn -> nsubs] -> filesize = flen;
-		fn -> subs[fn -> nsubs] -> filename = lw_strdup(fn -> filedata + l);
+		fn -> subs[fn -> nsubs] -> filename = lw_strdup((char *)(fn -> filedata + l));
 		fn -> subs[fn -> nsubs] -> parent = fn;
 		fn -> subs[fn -> nsubs] -> forced = fn -> forced;		
 		read_file(fn -> subs[fn -> nsubs]);