Commit fae0d803 authored by Bernhard Link's avatar Bernhard Link

quiet some warnings

parent 98fec401
......@@ -638,7 +638,7 @@ static retvalue copytoplace(const char *gotfilename, const char *wantedfilename,
/* handle a downloaded Release or Release.gpg file:
* no checksums to test, nothing to trigger, as they have to be all
* read at once to decide what is new and what actually needs downloading */
static retvalue release_callback(enum queue_action action, UNUSED(void *privdata), UNUSED(void *privdata2), const char *uri, const char *gotfilename, const char *wantedfilename, /*@null@*/const struct checksums *checksums, const char *methodname) {
static retvalue release_callback(enum queue_action action, UNUSED(void *privdata), UNUSED(void *privdata2), UNUSED(const char *uri), const char *gotfilename, const char *wantedfilename, UNUSED(/*@null@*/const struct checksums *checksums), const char *methodname) {
retvalue r;
if( action != qa_got )
......@@ -1858,7 +1858,7 @@ static retvalue diff_uncompressed(void *privdata, const char *compressed, bool f
return queue_next_diff(ri);
}
static retvalue diff_got_callback(enum queue_action action, void *privdata, void *privdata2, const char *uri, const char *gotfilename, const char *wantedfilename, /*@null@*/const struct checksums *gotchecksums, const char *methodname) {
static retvalue diff_got_callback(enum queue_action action, void *privdata, UNUSED(void *privdata2), UNUSED(const char *uri), const char *gotfilename, const char *wantedfilename, UNUSED(/*@null@*/const struct checksums *gotchecksums), UNUSED(const char *methodname)) {
struct remote_index *ri = privdata;
retvalue r;
......
......@@ -321,7 +321,7 @@ static void modification_stripendlines(struct modification *m, int r) {
p++;
lines--;
}
assert( p - m->content <= m->len );
assert( (size_t)(p - m->content) <= m->len );
m->len = p - m->content;
}
......@@ -336,7 +336,7 @@ static void modification_stripstartlines(struct modification *m, int r) {
p++;
r--;
}
assert( p - m->content <= m->len );
assert( (size_t)(p - m->content) <= m->len );
m->len -= p - m->content;
m->content = p;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment