summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Rogers <brogers@suse.com>2012-08-20 12:45:08 -0600
committerMichael Roth <mdroth@linux.vnet.ibm.com>2012-12-03 13:24:20 -0600
commitea79e157c61eb20e1065836f9d2719ffef91b8cf (patch)
tree845f7849d72cdeb50fb230dd67149b77d811cfe1
parent4a8e490cbc15ad3fd88180ebff016cdd56242987 (diff)
downloadqemu-ea79e157c61eb20e1065836f9d2719ffef91b8cf.tar.gz
configure: avoid compiler warning in pipe2 detection
When building qemu-kvm for openSUSE:Factory, I am getting a warning in the pipe2 detection performed by configure, which prevents using --enable-werror. Change detection code to use return value of pipe2. Signed-off-by: Bruce Rogers <brogers@suse.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Blue Swirl <blauwirbel@gmail.com> (cherry picked from commit 9bca81624ef9299b9a06013fd29cd6899079aab4) Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
-rwxr-xr-xconfigure3
1 files changed, 1 insertions, 2 deletions
diff --git a/configure b/configure
index 199a89b4d9..bc951583e0 100755
--- a/configure
+++ b/configure
@@ -2389,8 +2389,7 @@ cat > $TMPC << EOF
int main(void)
{
int pipefd[2];
- pipe2(pipefd, O_CLOEXEC);
- return 0;
+ return pipe2(pipefd, O_CLOEXEC);
}
EOF
if compile_prog "" "" ; then