qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] configure: avoid compiler warning in pipe2 dete


From: Andreas Färber
Subject: Re: [Qemu-devel] [PATCH] configure: avoid compiler warning in pipe2 detection
Date: Wed, 24 Oct 2012 19:20:15 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1

Am 24.10.2012 18:48, schrieb Peter Maydell:
> Ping! Just ran into this bug today and noticed this
> patch never got applied.
> Patch still applies OK, patchwork url is:
> http://patchwork.ozlabs.org/patch/178920/

...and since it was noticed while packaging v1.2, it should go into
stable as well (cc'ed).

Andreas

> On 20 August 2012 19:45, Bruce Rogers <address@hidden> wrote:
>> 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>
>> ---
>>  configure |    3 +--
>>  1 files changed, 1 insertions(+), 2 deletions(-)
>>
>> diff --git a/configure b/configure
>> index 5808764..2e1f7f8 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
>> --
>> 1.7.7

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg



reply via email to

[Prev in Thread] Current Thread [Next in Thread]