[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: test-ignore-value.c warnings
From: |
Eric Blake |
Subject: |
Re: test-ignore-value.c warnings |
Date: |
Mon, 14 Mar 2011 08:17:07 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7 |
On 03/13/2011 01:57 PM, Bruno Haible wrote:
> Hi Eric,
>
> On OpenBSD 4.4, which uses a gcc version 3.3.5, I get these warnings:
>
> test-ignore-value.c:35: warning: `__warn_unused_result__' attribute directive
> ignored
> test-ignore-value.c:36: warning: `__warn_unused_result__' attribute directive
> ignored
> test-ignore-value.c:37: warning: `__warn_unused_result__' attribute directive
> ignored
> test-ignore-value.c:38: warning: `__warn_unused_result__' attribute directive
> ignored
> test-ignore-value.c:39: warning: `__warn_unused_result__' attribute directive
> ignored
>
> The reason is that __warn_unused_result__ was introduced in gcc 3.4, not
> in gcc 3.1, as the code appears to assume. OK to fix this?
>
>
> 2011-03-13 Bruno Haible <address@hidden>
>
> ignore-value tests: Avoid warnings.
> * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
> empty for gcc < 3.4.
Good to go - thanks for doing this.
--
Eric Blake address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature