From: Uwe Hermann Date: Tue, 15 Nov 2011 20:05:40 +0000 (+0100) Subject: Fix some compiler warnings. X-Git-Tag: libsigrok-0.1.0~231 X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=commitdiff_plain;h=719c5a934c7705466a449854b876b9962eb4cb5e Fix some compiler warnings. --- 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__);