summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorBruce Rogers2012-08-20 20:45:08 +0200
committerBlue Swirl2012-10-27 16:21:04 +0200
commit9bca81624ef9299b9a06013fd29cd6899079aab4 (patch)
tree3afc09c2ad05326f0beed49fb08d5f3a3d27c2e9 /configure
parentconfigure: Disable (clang) initializer-overrides warnings (diff)
downloadqemu-9bca81624ef9299b9a06013fd29cd6899079aab4.tar.gz
qemu-9bca81624ef9299b9a06013fd29cd6899079aab4.tar.xz
qemu-9bca81624ef9299b9a06013fd29cd6899079aab4.zip
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>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 1 insertions, 2 deletions
diff --git a/configure b/configure
index 34ba9c7199..37f712d475 100755
--- a/configure
+++ b/configure
@@ -2399,8 +2399,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