Re: minor compiler warning on OpenBSD

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: minor compiler warning on OpenBSD
Дата
Msg-id 4522.1184195897@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: minor compiler warning on OpenBSD  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: minor compiler warning on OpenBSD
Re: minor compiler warning on OpenBSD
Список pgsql-hackers
Alvaro Herrera <alvherre@commandprompt.com> 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?

Now if we could only get rid of those flex-induced warnings in ecpg...
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Greg Smith
Дата:
Сообщение: Re: doubt
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [GENERAL] Count(*) throws error