Mercurial > hg > index.cgi
changeset 456:83a124428f44
Cause warnings to show up in the listing output.
author | William Astle <lost@l-w.ca> |
---|---|
date | Fri, 16 Feb 2018 23:24:18 -0700 |
parents | cad5937314cb |
children | 7d6eacd87370 |
files | lwasm/list.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lwasm/list.c Fri Feb 16 22:53:46 2018 -0700 +++ b/lwasm/list.c Fri Feb 16 23:24:18 2018 -0700 @@ -91,7 +91,8 @@ lwasm_error_t *e; for (e = nl -> warn; e; e = e -> next) { - printf("Warning: %s\n", e -> mess); + if (of != stdout) printf("Warning: %s\n", e -> mess); + fprintf(of, "Warning: %s\n", e -> mess); } } if (nc == 0) @@ -119,7 +120,8 @@ lwasm_error_t *e; for (e = cl -> warn; e; e = e -> next) { - printf("Warning: %s\n", e -> mess); + if (of != stdout) printf("Warning: %s\n", e -> mess); + fprintf(of, "Warning: %s\n", e -> mess); } } obytelen = cl -> outputl;