From ef1bcc7338e92e44824d1361465d1bc6ec3bd9c6 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Wed, 19 Jun 2019 23:59:25 +0200 Subject: ape: fix stdio putc() macro, avoiding "result of operation not used" warning moving _IO_CHMASK masking on the right hand side fixes it. --- sys/include/ape/stdio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/include') diff --git a/sys/include/ape/stdio.h b/sys/include/ape/stdio.h index 1e3e585f5..cadc93c40 100644 --- a/sys/include/ape/stdio.h +++ b/sys/include/ape/stdio.h @@ -112,7 +112,7 @@ extern int getchar(void); #define getchar() getc(stdin) extern char *gets(char *); extern int putc(int, FILE *); -#define putc(c, f) ((f)->wp>=(f)->rp?_IO_putc(c, f):(*(f)->wp++=c)&_IO_CHMASK) +#define putc(c, f) ((f)->wp>=(f)->rp?_IO_putc(c, f):(*(f)->wp++=(c)&_IO_CHMASK)) extern int _IO_putc(int, FILE *); extern int putchar(int); #define putchar(c) putc(c, stdout) -- cgit v1.2.3