Re: 2x compile warning

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: 2x compile warning
Дата
Msg-id Pine.BSO.4.63.0604241601110.30903@leary2.csoft.net
обсуждение исходный текст
Ответ на Re: 2x compile warning  (Martijn van Oosterhout <kleptog@svana.org>)
Ответы Re: 2x compile warning  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: 2x compile warning  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers

On Mon, 24 Apr 2006, Martijn van Oosterhout wrote:

> Perhaps someone could check if changing the test explicitly check
> against NULL:
>
>>             ((attnum) > (int) (tup)->t_data->t_natts) ? \
>>             ( \
>>                 (((isnull) != NULL)? (*(isnull) = true) : (dummyret)NULL), \
>>                 (Datum)NULL \
>
> removes the warning. It seems silly for the GCC people to add warnings
> for this kind of stuff without a simple way to bypass it...

Yes, this coding removes the warning.

Kris Jurka



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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: 2x compile warning
Следующее
От: "Magnus Hagander"
Дата:
Сообщение: Re: pgsql: Improve our private implementation of cbrt() to give results of