提交 de4950b2 编写于 作者: D Daniel Veillard

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

daniel
上级 c29d0929
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
......
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册