Re: hstore compiler warnings - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: hstore compiler warnings
Date
Msg-id 514B5688.8090506@dunslane.net
Whole thread Raw
In response to Re: hstore compiler warnings  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: hstore compiler warnings  (Kevin Grittner <kgrittn@ymail.com>)
List pgsql-hackers
On 03/21/2013 11:18 AM, Andrew Dunstan wrote:
>
> On 03/21/2013 10:46 AM, Kevin Grittner wrote:
>> Is anyone looking at these?:
>>
>> hstore_io.c: In function ‘hstore_to_json_loose’:
>> hstore_io.c:1312:5: warning: ignoring return value of ‘strtol’,
>> declared with attribute warn_unused_result [-Wunused-result]
>> hstore_io.c:1324:6: warning: ignoring return value of ‘strtod’,
>> declared with attribute warn_unused_result [-Wunused-result]
>>
>> gcc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
>>
>> These warnings seem to have started with:
>>
>> http://git.postgresql.org/gitweb/?p=postgresql.git;h=38fb4d978c5bfc377ef979e2595e3472744a3b05
>>
>
>
> I thought we'd got rid of those. And they don't pop up on my F16 dev
> box (gcc 4.6.2)
>
> I'll check it out.


This is the only thing that I have found to work with very recent gcc.
Seems ugly. Anyone got a better idea?

cheers

andrew


Attachment

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Proposal for Allow postgresql.conf values to be changed via SQL [review]
Next
From: Simon Riggs
Date:
Subject: Re: Should commit_delay be PGC_SIGHUP?