diff options
| author | Werner Koch <[email protected]> | 2016-09-13 18:48:06 +0000 | 
|---|---|---|
| committer | Werner Koch <[email protected]> | 2016-09-13 18:48:06 +0000 | 
| commit | 9064eebdc05e7149c2c8cc899fbd7874622fb769 (patch) | |
| tree | e5bffc999f3c38f13cde215945ae8683a5e0c891 /tests/t-data.c | |
| parent | tests: Use gpgme_io_write in passhrase callbacks. (diff) | |
| download | gpgme-9064eebdc05e7149c2c8cc899fbd7874622fb769.tar.gz gpgme-9064eebdc05e7149c2c8cc899fbd7874622fb769.zip | |
tests: Mark lots of unused vars and fix const mismatches.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
| -rw-r--r-- | tests/t-data.c | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/tests/t-data.c b/tests/t-data.c index 178675c9..fe2d59ed 100644 --- a/tests/t-data.c +++ b/tests/t-data.c @@ -86,6 +86,8 @@ read_cb (void *cb_value, char *buffer, size_t count, size_t *nread)    unsigned int amount = strlen (text) - off;    /*  round_t round = *((round_t *) cb_value);  */ +  (void)cb_value; +    if (!buffer && !count && !nread)      {        /* Rewind requested.  */ @@ -190,8 +192,9 @@ write_test (round_t round, gpgme_data_t data)      }  } +  int -main (int argc, char **argv) +main (void)  {    round_t round = TEST_INITIALIZER;    char *text_filename = make_filename ("t-data-1.txt"); | 
