Re: Obsolete TODO item "-Wcast-align" ?

Поиск
Список
Период
Сортировка
От Christian Convey
Тема Re: Obsolete TODO item "-Wcast-align" ?
Дата
Msg-id CAPfS4Zwa4s6gVGOO5x73KdfDUETx5Ch8Zx5eamQPgxFFRSNUxw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Obsolete TODO item "-Wcast-align" ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Obsolete TODO item "-Wcast-align" ?  (Bruce Momjian <bruce@momjian.us>)
Re: Obsolete TODO item "-Wcast-align" ?  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Список pgsql-hackers
On Sun, Sep 4, 2016 at 5:56 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Christian Convey <christian.convey@gmail.com> writes:
>> I chose this item from the TODO page: "[E] Remove warnings created by
>> -Wcast-align".  It didn't have a check-mark after the "[E]", which I
>> took to mean it's an outstanding issue.
>> However, I'm starting to wonder if it's already been fixed:
>
> No, but you only see it on some platforms/compilers.  On my OS X laptop
> (clang-based not gcc-based compiler), turning that on generates just a
> hair short of 13000 warnings :-(
>
> I think that TODO item is indeed obsolete, but more in the direction
> of "we're never gonna do that".  There are too many places where we
> do need to cast up from generic pointer to specific structure pointer,
> and there doesn't seem to be any practical way to tell a compiler which
> instances are useful to warn about.

Thanks for the response.  I'm unclear about how the TODO list is
curated.  Is there someone whose attention I should direct to this
thread?

- Christian



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Obsolete TODO item "-Wcast-align" ?
Следующее
От: Greg Stark
Дата:
Сообщение: Re: pg_sequence catalog