]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
Silence unused variable and parameter warnings
authorWolfgang Stöggl <c72578@yahoo.de>
Tue, 7 May 2019 14:41:17 +0000 (16:41 +0200)
committerTobias Oetiker <tobi@oetiker.ch>
Wed, 8 May 2019 05:46:57 +0000 (07:46 +0200)
commita5e2b23394fd30787857c9786b0f412486b1e106
tree956546de79e34c9ef88b4b49d160e8885602f9af
parentd5649dd7d6d599b426462f09d64f093229e63110
Silence unused variable and parameter warnings

- Cast unused variables and parameters to void, do nothing
- Fixes the following compiler warnings on Windows:
rrd_open.c:
  757:9: warning: unused parameter 'writelock' [-Wunused-parameter]
    int writelock)
  810:24: warning: unused variable 'rrd_simple_file'
    [-Wunused-variable] rrd_simple_file_t *rrd_simple_file;
  807:17: warning: unused parameter 'rrd_file' [-Wunused-parameter]
    rrd_file_t *rrd_file,
  808:12: warning: unused parameter 'rrd' [-Wunused-parameter]
    rrd_t *rrd)
rrd_client.c:
  746:39: warning: unused parameter 'client' [-Wunused-parameter]
    static int connect_unix(rrd_client_t *client, const char *path)
    /* {{{ */
  746:59: warning: unused parameter 'path' [-Wunused-parameter]
    static int connect_unix(rrd_client_t *client, const char *path)
    /* {{{ */
src/rrd_client.c
src/rrd_open.c