# HG changeset patch # User William Astle # Date 1342369663 21600 # Node ID 2b784a28428eeb719fc1b104c0c3ab4ea842deaa # Parent 3604d0ef06c697d8a97dfdba392aec163e225e4a Silence a few warnings Add workaround to silence a few warnings about variables being set but not used. diff -r 3604d0ef06c6 -r 2b784a28428e lwasm/output.c --- a/lwasm/output.c Sun Jun 10 18:33:22 2012 -0600 +++ b/lwasm/output.c Sun Jul 15 10:27:43 2012 -0600 @@ -37,7 +37,8 @@ void write_code_os9(asmstate_t *as, FILE *of); // this prevents warnings about not using the return value of fwrite() -#define writebytes(s, l, c, f) do { int r; r = fwrite((s), (l), (c), (f)); } while (0) +// r++ prevents the "set but not used" warnings; should be optimized out +#define writebytes(s, l, c, f) do { int r; r = fwrite((s), (l), (c), (f)); r++; } while (0) void do_output(asmstate_t *as) {