[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
Список 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 по дате отправления: