Re: compile warnings in CVS

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: compile warnings in CVS
Дата
Msg-id 14109.1029639055@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: compile warnings in CVS  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
I said:
> Another alternative is
>     char *fmt = "%c";
>     ...
>     strftime(..., fmt, ...);
> which I think will probably defeat gcc's check (haven't tried it
> though).

I tried this, and it did shut up the warning in my local copy of gcc.
So I committed it.

> Does anyone want to argue that %c is actually a bad choice?

This is still open to debate if anyone wants to make the case...
        regards, tom lane


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: cvs-tip broken
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Open 7.3 items