* src/util.c: flag unused parameters, by Maximilian Wilhelm

daniel
This commit is contained in:
Daniel Veillard 2009-03-20 20:46:07 +00:00
parent c29d092905
commit de4950b200
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
Fri Mar 20 21:43:57 CET 2009 Daniel Veillard <veillard@redhat.com>
* src/util.c: flag unused parameters, by Maximilian Wilhelm
Fri Mar 20 13:16:01 CET 2009 Daniel Veillard <veillard@redhat.com>
* src/libvirt_private.syms src/storage_backend_fs.c src/util.c

View File

@ -121,14 +121,14 @@ ssize_t safewrite(int fd, const void *buf, size_t count)
}
#ifdef HAVE_POSIX_FALLOCATE
int safezero(int fd, int flags, off_t offset, off_t len)
int safezero(int fd, int flags ATTRIBUTE_UNUSED, off_t offset, off_t len)
{
return posix_fallocate(fd, offset, len);
}
#else
#ifdef HAVE_MMAP
int safezero(int fd, int flags, off_t offset, off_t len)
int safezero(int fd, int flags ATTRIBUTE_UNUSED, off_t offset, off_t len)
{
int r;
char *buf;
@ -152,7 +152,7 @@ int safezero(int fd, int flags, off_t offset, off_t len)
#else /* HAVE_MMAP */
int safezero(int fd, int flags, off_t offset, off_t len)
int safezero(int fd, int flags ATTRIBUTE_UNUSED, off_t offset, off_t len)
{
int r;
char *buf;