1
0
Fork 0
mirror of git://git.psyc.eu/libpsyc synced 2024-08-15 03:19:02 +00:00

handle gcc bug

This commit is contained in:
psyc://loupsycedyglgamf.onion/~lynX 1984-04-04 00:44:05 +00:00
parent 8b2d725514
commit 3a7ca2fa05
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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;
}