Tom Lane wrote:
> Alvaro Herrera <[EMAIL PROTECTED]> writes:
>> My local manpage for strftime says that we can get around this warning
>> by overloading it with something like
>> size_t
>> my_strftime(char *s, size_t max, const char *fmt,
>>          const struct tm *tm)
>> {
>>      return strftime(s, max, fmt, tm);
>> }
> Hey, that works nicely.  On my version of gcc, it suppresses the warning
> even if my_strftime is marked "static inline", which should mean that
> there's no runtime penalty.
> I've committed the patch to HEAD --- Stefan, would you check if it
> silences your version of gcc?

yeah that patch fixes the warning for me too - thanks!


---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at


Reply via email to