]> sigrok.org Git - libsigrok.git/blobdiff - datastore.c
Other method to avoid "unused var" compiler warnings.
[libsigrok.git] / datastore.c
index 11ae0e15ce039d69efb6e8b93515536d4a0be211..774ec08cd2cf0555cf037d7fd8e50d27ea4a12c9 100644 (file)
@@ -69,8 +69,8 @@ void sr_datastore_put(struct sr_datastore *ds, void *data, unsigned int length,
        gpointer chunk;
 
        /* Avoid compiler warnings. */
-       in_unitsize = in_unitsize;
-       probelist = probelist;
+       (void)in_unitsize;
+       (void)probelist;
 
        if (ds->chunklist == NULL)
                chunk = new_chunk(&ds);