| От | Stefan Kaltenbrunner |
|---|---|
| Тема | Re: minor compiler warning on OpenBSD |
| Дата | |
| Msg-id | 4695D30D.2050203@kaltenbrunner.cc обсуждение |
| Ответ на | Re: minor compiler warning on OpenBSD (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-hackers |
Tom Lane wrote:
> 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?
yeah that patch fixes the warning for me too - thanks!
Stefan
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера