Mercurial > hg > index.cgi
comparison 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 |
comparison
equal
deleted
inserted
replaced
1:96c4dc89016e | 2:7317fbe024af |
---|---|
20 */ | 20 */ |
21 | 21 |
22 #include <argp.h> | 22 #include <argp.h> |
23 #include <stdio.h> | 23 #include <stdio.h> |
24 #include <stdlib.h> | 24 #include <stdlib.h> |
25 #include <string.h> | |
25 | 26 |
26 #include <lw_alloc.h> | 27 #include <lw_alloc.h> |
27 #include <lw_string.h> | 28 #include <lw_string.h> |
28 #include <lw_stringlist.h> | 29 #include <lw_stringlist.h> |
29 #include <lw_expr.h> | 30 #include <lw_expr.h> |
246 if (asmstate.flags & FLAG_DEPEND) | 247 if (asmstate.flags & FLAG_DEPEND) |
247 { | 248 { |
248 // output dependencies | 249 // output dependencies |
249 char *n; | 250 char *n; |
250 | 251 |
251 while (n = lw_stack_pop(asmstate.includelist)) | 252 while ((n = lw_stack_pop(asmstate.includelist))) |
252 { | 253 { |
253 fprintf(stdout, "%s\n", n); | 254 fprintf(stdout, "%s\n", n); |
254 lw_free(n); | 255 lw_free(n); |
255 } | 256 } |
256 } | 257 } |