# HG changeset patch # User William Astle # Date 1518848658 25200 # Node ID 83a124428f44ef6de82d40fc667e573df2755b3b # Parent cad5937314cb5c38181f8bd93244772cab685f50 Cause warnings to show up in the listing output. diff -r cad5937314cb -r 83a124428f44 lwasm/list.c --- 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;