Skip to content

Commit

Permalink
add some (void) casts for unused variables
Browse files Browse the repository at this point in the history
All these places already have an XXX marker, so we know we need to fix
them later. Let's not clutter the static analysis results with them.
  • Loading branch information
shahn committed Apr 23, 2011
1 parent b693c32 commit 65707d7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions bufferevent_filter.c
Expand Up @@ -428,6 +428,7 @@ be_filter_readcb(struct bufferevent *underlying, void *_me)

/* XXXX use return value */
res = be_filter_process_input(bevf, state, &processed_any);
(void)res;

/* XXX This should be in process_input, not here. There are
* other places that can call process-input, and they should
Expand Down
1 change: 1 addition & 0 deletions bufferevent_openssl.c
Expand Up @@ -1013,6 +1013,7 @@ be_openssl_outbuf_cb(struct evbuffer *buf,
consider_writing(bev_ssl);
}
/* XXX Handle r < 0 */
(void)r;
}


Expand Down
1 change: 1 addition & 0 deletions bufferevent_sock.c
Expand Up @@ -451,6 +451,7 @@ bufferevent_connect_getaddrinfo_cb(int result, struct evutil_addrinfo *ai,
/* XXX use the other addrinfos? */
/* XXX use this return value */
r = bufferevent_socket_connect(bev, ai->ai_addr, (int)ai->ai_addrlen);
(void)r;
_bufferevent_decref_and_unlock(bev);
evutil_freeaddrinfo(ai);
}
Expand Down

0 comments on commit 65707d7

Please sign in to comment.