From 719c5a934c7705466a449854b876b9962eb4cb5e Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Tue, 15 Nov 2011 21:05:40 +0100 Subject: [PATCH] Fix some compiler warnings. --- hardware/asix-sigma/asix-sigma.c | 2 ++ input/input_binary.c | 3 +-- output/output_csv.c | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hardware/asix-sigma/asix-sigma.c b/hardware/asix-sigma/asix-sigma.c index 185861c4..e7d6f783 100644 --- a/hardware/asix-sigma/asix-sigma.c +++ b/hardware/asix-sigma/asix-sigma.c @@ -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) { diff --git a/input/input_binary.c b/input/input_binary.c index d9a53cb6..4286a6c3 100644 --- a/input/input_binary.c +++ b/input/input_binary.c @@ -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; diff --git a/output/output_csv.c b/output/output_csv.c index 8247dd28..8576105a 100644 --- a/output/output_csv.c +++ b/output/output_csv.c @@ -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__);