Mercurial > hg > index.cgi
comparison 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 |
comparison
equal
deleted
inserted
replaced
1:96c4dc89016e | 2:7317fbe024af |
---|---|
292 term = lw_expr_term_create_int(tt); | 292 term = lw_expr_term_create_int(tt); |
293 break; | 293 break; |
294 | 294 |
295 case 0x02: | 295 case 0x02: |
296 // external symbol reference | 296 // external symbol reference |
297 term = lw_expr_term_create_sym(CURSTR(), 0); | 297 term = lw_expr_term_create_sym((char *)CURSTR(), 0); |
298 break; | 298 break; |
299 | 299 |
300 case 0x03: | 300 case 0x03: |
301 // internal symbol reference | 301 // internal symbol reference |
302 term = lw_expr_term_create_sym(CURSTR(), 1); | 302 term = lw_expr_term_create_sym((char *)CURSTR(), 1); |
303 break; | 303 break; |
304 | 304 |
305 case 0x04: | 305 case 0x04: |
306 // operator | 306 // operator |
307 term = lw_expr_term_create_oper(CURBYTE()); | 307 term = lw_expr_term_create_oper(CURBYTE()); |
411 fn -> subs = lw_realloc(fn -> subs, sizeof(fileinfo_t *) * (fn -> nsubs + 1)); | 411 fn -> subs = lw_realloc(fn -> subs, sizeof(fileinfo_t *) * (fn -> nsubs + 1)); |
412 fn -> subs[fn -> nsubs] = lw_malloc(sizeof(fileinfo_t)); | 412 fn -> subs[fn -> nsubs] = lw_malloc(sizeof(fileinfo_t)); |
413 memset(fn -> subs[fn -> nsubs], 0, sizeof(fileinfo_t)); | 413 memset(fn -> subs[fn -> nsubs], 0, sizeof(fileinfo_t)); |
414 fn -> subs[fn -> nsubs] -> filedata = fn -> filedata + cc; | 414 fn -> subs[fn -> nsubs] -> filedata = fn -> filedata + cc; |
415 fn -> subs[fn -> nsubs] -> filesize = flen; | 415 fn -> subs[fn -> nsubs] -> filesize = flen; |
416 fn -> subs[fn -> nsubs] -> filename = lw_strdup(fn -> filedata + l); | 416 fn -> subs[fn -> nsubs] -> filename = lw_strdup((char *)(fn -> filedata + l)); |
417 fn -> subs[fn -> nsubs] -> parent = fn; | 417 fn -> subs[fn -> nsubs] -> parent = fn; |
418 fn -> subs[fn -> nsubs] -> forced = fn -> forced; | 418 fn -> subs[fn -> nsubs] -> forced = fn -> forced; |
419 read_file(fn -> subs[fn -> nsubs]); | 419 read_file(fn -> subs[fn -> nsubs]); |
420 fn -> nsubs++; | 420 fn -> nsubs++; |
421 cc += flen; | 421 cc += flen; |