[Pkg-libvirt-commits] [libguestfs] 45/61: builder: pxzcat: Ignore return value from posix_fadvise.
Hilko Bengen
bengen at moszumanska.debian.org
Sat Mar 29 14:36:31 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch experimental
in repository libguestfs.
commit fe97d5ed9cd32bac999a93fe1212538363f8a020
Author: Richard W.M. Jones <rjones at redhat.com>
Date: Wed Mar 26 20:03:15 2014 +0000
builder: pxzcat: Ignore return value from posix_fadvise.
Quiets warning from Coverity.
---
builder/Makefile.am | 1 +
builder/pxzcat-c.c | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/builder/Makefile.am b/builder/Makefile.am
index a777942..471a53a 100644
--- a/builder/Makefile.am
+++ b/builder/Makefile.am
@@ -20,6 +20,7 @@ include $(top_srcdir)/subdir-rules.mk
AM_YFLAGS = -d
AM_CFLAGS = \
-I$(shell $(OCAMLC) -where) \
+ -I$(top_srcdir)/gnulib/lib \
-I$(top_srcdir)/src \
-I$(top_srcdir)/fish \
-pthread \
diff --git a/builder/pxzcat-c.c b/builder/pxzcat-c.c
index 06d46fc..f905b31 100644
--- a/builder/pxzcat-c.c
+++ b/builder/pxzcat-c.c
@@ -34,6 +34,8 @@
#include <caml/memory.h>
#include <caml/mlvalues.h>
+#include "ignore-value.h"
+
#ifdef HAVE_CAML_UNIXSUPPORT_H
#include <caml/unixsupport.h>
#else
@@ -191,7 +193,7 @@ pxzcat (value filenamev, value outputfilev, unsigned nr_threads)
}
/* Tell the kernel we won't read the output file. */
- posix_fadvise (fd, 0, 0, POSIX_FADV_RANDOM|POSIX_FADV_DONTNEED);
+ ignore_value (posix_fadvise (fd, 0, 0, POSIX_FADV_RANDOM|POSIX_FADV_DONTNEED));
/* Iterate over blocks. */
iter_blocks (idx, nr_threads, filenamev, fd, outputfilev, ofd);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git
More information about the Pkg-libvirt-commits
mailing list