diff lwasm/pseudo.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 127e5b1e01c0
line wrap: on
line diff
--- a/lwasm/pseudo.c	Wed Jan 19 22:31:00 2011 -0700
+++ b/lwasm/pseudo.c	Thu Jan 20 22:39:46 2011 -0700
@@ -20,6 +20,9 @@
 */
 
 #include <stdio.h>
+#include <ctype.h>
+
+#include <lw_alloc.h>
 
 #include "lwasm.h"
 #include "instab.h"
@@ -101,7 +104,7 @@
 {
 	int i;
 	lw_expr_t e;
-	int v;
+//	int v;
 	
 	for (i = 0; i < l -> len; i++)
 	{
@@ -136,7 +139,7 @@
 {
 	int i;
 	lw_expr_t e;
-	int v;
+//	int v;
 	
 	for (i = 0; i < (l -> len)/2; i++)
 	{
@@ -171,7 +174,7 @@
 {
 	int i;
 	lw_expr_t e;
-	int v;
+//	int v;
 	
 	for (i = 0; i < (l -> len)/4; i++)
 	{
@@ -1056,7 +1059,7 @@
 	if (delim && **p)
 		(*p)++;
 	
-	0 == asprintf(&p3, "include:%s", fn);
+	(void)(0 == asprintf(&p3, "include:%s", fn));
 	input_open(as, p3);
 	lw_free(p3);