[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 25/43] configure: avoid compiler warning in pipe2 de
From: |
Michael Roth |
Subject: |
[Qemu-devel] [PATCH 25/43] configure: avoid compiler warning in pipe2 detection |
Date: |
Mon, 3 Dec 2012 16:08:49 -0600 |
From: Bruce Rogers <address@hidden>
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 <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>
Signed-off-by: Blue Swirl <address@hidden>
(cherry picked from commit 9bca81624ef9299b9a06013fd29cd6899079aab4)
Signed-off-by: Michael Roth <address@hidden>
---
configure | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/configure b/configure
index 199a89b..bc95158 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
--
1.7.9.5
- [Qemu-devel] [PATCH 35/43] iscsi: fix segfault in url parsing, (continued)
- [Qemu-devel] [PATCH 35/43] iscsi: fix segfault in url parsing, Michael Roth, 2012/12/03
- [Qemu-devel] [PATCH 37/43] iscsi: do not assume device is zero initialized, Michael Roth, 2012/12/03
- [Qemu-devel] [PATCH 36/43] iscsi: fix deadlock during login, Michael Roth, 2012/12/03
- [Qemu-devel] [PATCH 39/43] virtio-scsi: Fix subtle (guest) endian bug, Michael Roth, 2012/12/03
- [Qemu-devel] [PATCH 40/43] qxl: reload memslots after migration, when qxl is in UNDEFINED mode, Michael Roth, 2012/12/03
- [Qemu-devel] [PATCH 38/43] virtio-scsi: Fix some endian bugs with virtio-scsi, Michael Roth, 2012/12/03
- [Qemu-devel] [PATCH 41/43] usb: fail usbdevice_create() when there is no USB bus, Michael Roth, 2012/12/03
- [Qemu-devel] [PATCH 42/43] stream: fix ratelimit_set_speed, Michael Roth, 2012/12/03
- [Qemu-devel] [PATCH 43/43] e1000: Discard packets that are too long if !SBP and !LPE, Michael Roth, 2012/12/03
- [Qemu-devel] [PATCH 24/43] target-openrisc: remove conflicting definitions from cpu.h, Michael Roth, 2012/12/03
- [Qemu-devel] [PATCH 25/43] configure: avoid compiler warning in pipe2 detection,
Michael Roth <=