mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
handle gcc bug
This commit is contained in:
parent
8b2d725514
commit
3a7ca2fa05
2 changed files with 4 additions and 4 deletions
|
@ -9,7 +9,7 @@ DEBUG = 2
|
||||||
|
|
||||||
# compilation fails if -std=c99 is provided!?
|
# compilation fails if -std=c99 is provided!?
|
||||||
# (netdb.h refuses to export struct addrinfo)
|
# (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
|
LDFLAGS = -L../lib
|
||||||
LOADLIBES = -lpsyc -lm
|
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
|
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
|
||||||
|
|
|
@ -70,7 +70,7 @@ test_init (int i)
|
||||||
int
|
int
|
||||||
test_input (int i, char *recvbuf, size_t nbytes)
|
test_input (int i, char *recvbuf, size_t nbytes)
|
||||||
{
|
{
|
||||||
int j, ret, retl, r;
|
int j, ret, retl;
|
||||||
char sendbuf[SEND_BUF_SIZE];
|
char sendbuf[SEND_BUF_SIZE];
|
||||||
char *parsebuf = recvbuf - contbytes;
|
char *parsebuf = recvbuf - contbytes;
|
||||||
/* We have a buffer with pointers pointing to various parts of it:
|
/* 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)
|
if (verbose)
|
||||||
printf("# Done parsing.\n");
|
printf("# Done parsing.\n");
|
||||||
else if (progress)
|
else if (progress)
|
||||||
r = write(1, ".", 1);
|
(void) write(1, ".", 1);
|
||||||
if ((filename && !multiple) || (!filename && single))
|
if ((filename && !multiple) || (!filename && single))
|
||||||
ret = -1;
|
ret = -1;
|
||||||
|
|
||||||
|
@ -428,7 +428,7 @@ test_input (int i, char *recvbuf, size_t nbytes)
|
||||||
} while (ret > 0);
|
} while (ret > 0);
|
||||||
|
|
||||||
if (progress)
|
if (progress)
|
||||||
r = write(1, " ", 1);
|
(void) write(1, " ", 1);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue