[HACKERS] [PATCH] quiet conversion warning in DatumGetFloat4

Поиск
Список
Период
Сортировка
От Chapman Flack
Тема [HACKERS] [PATCH] quiet conversion warning in DatumGetFloat4
Дата
Msg-id 592E4D04.1070609@anastigmatix.net
обсуждение исходный текст
Ответы Re: [HACKERS] [PATCH] quiet conversion warning in DatumGetFloat4  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
It seems that 14cca1b (use static inline functions for float <-> Datum
conversions) has an implicit narrowing conversion in one of those
functions.

If building an extension with gcc's -Wconversion warning enabled
(*cough* pljava *cough* ... the Maven plugin that runs the compiler
enables the warning by default), this makes for a noisy build.
The warning is harmless, but repeated everywhere postgres.h is
included. An explicit cast is enough to suppress it.

-Chap

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Вложения

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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: [HACKERS] TAP backpatching policy
Следующее
От: Michael Meskes
Дата:
Сообщение: Re: [HACKERS] ECPG: pg_type.h file is not synced