Fix some compiler warnings.

This commit is contained in:
Uwe Hermann 2011-11-15 21:05:40 +01:00
parent 300007323e
commit 719c5a934c
3 changed files with 3 additions and 3 deletions

View File

@ -1038,6 +1038,8 @@ static int receive_data(int fd, int revents, void *session_data)
bufsz = sigma_read_dram(sigma->state.chunks_downloaded,
newchunks, buf, sigma);
/* TODO: Check bufsz. For now, just avoid compiler warnings. */
(void)bufsz;
/* Find first ts. */
if (sigma->state.chunks_downloaded == 0) {

View File

@ -31,9 +31,8 @@
static int format_match(const char *filename)
{
/* suppress compiler warning */
filename = NULL;
(void)filename;
/* this module will handle anything you throw at it */
return TRUE;

View File

@ -126,7 +126,6 @@ static int event(struct sr_output *o, int event_type, char **data_out,
uint64_t *length_out)
{
struct context *ctx;
char *outbuf;
if (!o) {
sr_err("csv out: %s: o was NULL", __func__);