comparison lwasm/output.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 6b9991fb39b6
comparison
equal deleted inserted replaced
1:96c4dc89016e 2:7317fbe024af
340 buf[0] = 0x03; 340 buf[0] = 0x03;
341 writebytes(buf, 1, 1, of); 341 writebytes(buf, 1, 1, of);
342 writebytes(se -> symbol, strlen(se -> symbol), 1, of); 342 writebytes(se -> symbol, strlen(se -> symbol), 1, of);
343 if (se -> context != -1) 343 if (se -> context != -1)
344 { 344 {
345 sprintf(buf, "\x01%d", se -> context); 345 sprintf((char *)buf, "\x01%d", se -> context);
346 writebytes(buf, strlen(buf), 1, of); 346 writebytes(buf, strlen((char *)buf), 1, of);
347 } 347 }
348 writebytes("", 1, 1, of); 348 writebytes("", 1, 1, of);
349 return 0; 349 return 0;
350 } 350 }
351 } 351 }
468 468
469 writebytes(se -> symbol, strlen(se -> symbol), 1, of); 469 writebytes(se -> symbol, strlen(se -> symbol), 1, of);
470 if (se -> context >= 0) 470 if (se -> context >= 0)
471 { 471 {
472 writebytes("\x01", 1, 1, of); 472 writebytes("\x01", 1, 1, of);
473 sprintf(buf, "%d", se -> context); 473 sprintf((char *)buf, "%d", se -> context);
474 writebytes(buf, strlen(buf), 1, of); 474 writebytes(buf, strlen((char *)buf), 1, of);
475 } 475 }
476 // the "" is NOT an error 476 // the "" is NOT an error
477 writebytes("", 1, 1, of); 477 writebytes("", 1, 1, of);
478 478
479 // write the address 479 // write the address