diff lwasm/main.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 917b608b8c66
line wrap: on
line diff
--- a/lwasm/main.c	Wed Jan 19 22:31:00 2011 -0700
+++ b/lwasm/main.c	Thu Jan 20 22:39:46 2011 -0700
@@ -22,6 +22,7 @@
 #include <argp.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 
 #include <lw_alloc.h>
 #include <lw_string.h>
@@ -248,7 +249,7 @@
 		// output dependencies
 		char *n;
 		
-		while (n = lw_stack_pop(asmstate.includelist))
+		while ((n = lw_stack_pop(asmstate.includelist)))
 		{
 			fprintf(stdout, "%s\n", n);
 			lw_free(n);