Commit 17201da0 authored by Bernhard Link's avatar Bernhard Link

silence some compiler warnings

parent b726dd51
......@@ -219,7 +219,7 @@ static int mainqueue(int listener) {
FD_SET(c->client_fd,&exceptfds);
if( c->client_fd >= n )
n = c->client_fd+1;
if( c->serverignore > 0 && c->servercount > 0 || c->serverfdq.nfd > 0 )
if( (c->serverignore > 0 && c->servercount > 0) || c->serverfdq.nfd > 0 )
FD_SET(c->client_fd,&writefds);
} else if( c->server_fd != -1 && c->clientcount == 0 && c->clientfdq.nfd == 0 ) {
close(c->server_fd);
......@@ -233,7 +233,7 @@ static int mainqueue(int listener) {
FD_SET(c->server_fd,&exceptfds);
if( c->server_fd >= n )
n = c->server_fd+1;
if( (c->clientignore > 0 && c->clientcount > 0 || c->clientfdq.nfd > 0)
if( ((c->clientignore > 0 && c->clientcount > 0) || c->clientfdq.nfd > 0)
&& allowsent > 0)
FD_SET(c->server_fd,&writefds);
......
......@@ -803,12 +803,14 @@ static size_t printLISTofVALUE(struct connection *c,const uint8_t *buffer,size_t
case ft_ENUM8:
if( constant == NULL )
fputs("unknown:",out);
__attribute__ ((fallthrough));
case ft_CARD8:
fprintf(out,"0x%02x",(unsigned int)u8);
break;
case ft_ENUM16:
if( constant == NULL )
fputs("unknown:",out);
__attribute__ ((fallthrough));
case ft_CARD16:
fprintf(out,"0x%04x",(unsigned int)u16);
break;
......@@ -821,6 +823,7 @@ static size_t printLISTofVALUE(struct connection *c,const uint8_t *buffer,size_t
case ft_ENUM32:
if( constant == NULL )
fputs("unknown:",out);
__attribute__ ((fallthrough));
case ft_CARD32:
fprintf(out,"0x%08x",(unsigned int)u32);
break;
......@@ -1366,18 +1369,21 @@ static size_t print_parameters(struct connection *c, const unsigned char *buffer
case ft_ENUM8:
if( value == NULL )
fputs("unknown:",out);
__attribute__ ((fallthrough));
case ft_CARD8:
fprintf(out,"0x%02x",(unsigned int)u8);
break;
case ft_ENUM16:
if( value == NULL )
fputs("unknown:",out);
__attribute__ ((fallthrough));
case ft_CARD16:
fprintf(out,"0x%04x",(unsigned int)u16);
break;
case ft_ENUM32:
if( value == NULL )
fputs("unknown:",out);
__attribute__ ((fallthrough));
case ft_CARD32:
fprintf(out,"0x%08x",(unsigned int)u32);
break;
......
......@@ -157,7 +157,7 @@ extern const struct request *requests;
extern size_t num_requests;
extern const struct event *events;
extern size_t num_events;
extern const const char * const *errors;
extern const char * const *errors;
extern size_t num_errors;
extern const struct extension *extensions;
extern size_t num_extensions;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment