From 3a7ca2fa052d7a4f8a89efd4f69d58042ad98552 Mon Sep 17 00:00:00 2001 From: "psyc://loupsycedyglgamf.onion/~lynX" Date: Wed, 4 Apr 1984 00:44:05 +0000 Subject: [PATCH] handle gcc bug --- test/Makefile | 2 +- test/test_psyc.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/Makefile b/test/Makefile index 3ac7deb..f0a692e 100644 --- a/test/Makefile +++ b/test/Makefile @@ -9,7 +9,7 @@ DEBUG = 2 # compilation fails if -std=c99 is provided!? # (netdb.h refuses to export struct addrinfo) -CFLAGS = -I../include -I../src -Wall ${OPT} +CFLAGS = -I../include -I../src -Wall -Wno-unused-result ${OPT} LDFLAGS = -L../lib LOADLIBES = -lpsyc -lm TARGETS = test_psyc test_psyc_speed test_parser test_match test_render test_text var_routing var_type uniform_parse test_packet_id test_index test_update method diff --git a/test/test_psyc.c b/test/test_psyc.c index 8760da7..087a278 100644 --- a/test/test_psyc.c +++ b/test/test_psyc.c @@ -70,7 +70,7 @@ test_init (int i) int test_input (int i, char *recvbuf, size_t nbytes) { - int j, ret, retl, r; + int j, ret, retl; char sendbuf[SEND_BUF_SIZE]; char *parsebuf = recvbuf - contbytes; /* We have a buffer with pointers pointing to various parts of it: @@ -154,7 +154,7 @@ test_input (int i, char *recvbuf, size_t nbytes) if (verbose) printf("# Done parsing.\n"); else if (progress) - r = write(1, ".", 1); + (void) write(1, ".", 1); if ((filename && !multiple) || (!filename && single)) ret = -1; @@ -428,7 +428,7 @@ test_input (int i, char *recvbuf, size_t nbytes) } while (ret > 0); if (progress) - r = write(1, " ", 1); + (void) write(1, " ", 1); return ret; }