Fix a few more harmless compiler warnings:

- myfree in pager.c was called with an argument, so add one to the
dummy definition
- pgoff is offset_t (unsigned) and doesn't need to be compared to 0
- clang says '*(int *)0 = 0' will be optimized away instead of keeping
the segfault without a volatile hint (?! that is wrong!), but it causes
no harm to add anyway.
This commit is contained in:
Dominique Martinet
2017-09-13 09:50:46 +09:00
parent d213efac79
commit 196379854b
3 changed files with 3 additions and 3 deletions

View File

@@ -161,7 +161,7 @@ myalloc(struct swapinfo *si, size_t sz)
}
void
myfree()
myfree(void *p)
{
/* nothing so far */
}