Re: Warnings from fwrite() in git head - Mailing list pgsql-hackers

From Jeff Janes
Subject Re: Warnings from fwrite() in git head
Date
Msg-id CAMkU=1xwJFTR53oP9ZnFNJ-_DoYgKSFpHeUwHMfY8fdmXQ5E4A@mail.gmail.com
Whole thread Raw
In response to Warnings from fwrite() in git head  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
On Mon, Oct 8, 2012 at 8:58 AM, Bruce Momjian <bruce@momjian.us> wrote:
> I am seeing the following warnings in git head from zic.c:
>
>         zic.c:1505: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
...
>
> Seems casting to void is not enough.  Not sure why the error just
> started appearing for me last week.  I don't see any recent gcc updates.
> This is gcc version 4.4.5-8 on Debian Squeeze.

I think it was the addition of _FORTIFY_SOURCE

I get the warnings in zic.c, but also I was also getting them in a
different file.  But now I only see zic ones in newest HEAD.

Cheers,

Jeff



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Warnings from fwrite() in git head
Next
From: Jehan-Guillaume de Rorthais
Date:
Subject: Logging parameters values on bind error