]> sigrok.org Git - libsigrok.git/commitdiff
Fix some compiler warnings.
authorUwe Hermann <redacted>
Tue, 15 Nov 2011 20:05:40 +0000 (21:05 +0100)
committerUwe Hermann <redacted>
Tue, 15 Nov 2011 20:05:40 +0000 (21:05 +0100)
hardware/asix-sigma/asix-sigma.c
input/input_binary.c
output/output_csv.c

index 185861c4971e11ebe47eb661cea0b09ea66d4564..e7d6f7833103bd608a4a29344bbec7ec2ad9f4ea 100644 (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) {
index d9a53cb66c3f63a7876c1e02c68d846623a69f1f..4286a6c3459a1bcd5eaf7e1be1b863f8159be4dd 100644 (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;
index 8247dd288ea0f86c946d2d5346cdfce0c8714037..8576105a29cfc7a2eca4dbae4598c31dc735b53b 100644 (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__);