Re: [HACKERS] [PATCH] Suppress Clang 3.9 warnings
От
Fabien COELHO
Тема
Re: [HACKERS] [PATCH] Suppress Clang 3.9 warnings
Дата
Msg-id
alpine.DEB.2.20.1702221532100.22403@lancre
Ответ на
[HACKERS] [PATCH] Suppress Clang 3.9 warnings (Aleksander Alekseev)
Список
Дерево обсуждения
[HACKERS] [PATCH] Suppress Clang 3.9 warnings Aleksander Alekseev <a.alekseev@postgrespro.ru>
Re: [HACKERS] [PATCH] Suppress Clang 3.9 warnings Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] [PATCH] Suppress Clang 3.9 warnings Aleksander Alekseev <a.alekseev@postgrespro.ru>
Re: [HACKERS] [PATCH] Suppress Clang 3.9 warnings Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] [PATCH] Suppress Clang 3.9 warnings Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] [PATCH] Suppress Clang 3.9 warnings Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] [PATCH] Suppress Clang 3.9 warnings Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] [PATCH] Suppress Clang 3.9 warnings David Steele <david@pgmasters.net>
Re: [HACKERS] [PATCH] Suppress Clang 3.9 warnings Aleksander Alekseev <a.alekseev@postgrespro.ru>
Re: [HACKERS] [PATCH] Suppress Clang 3.9 warnings Noah Misch <noah@leadboat.com>
Re: [HACKERS] [PATCH] Suppress Clang 3.9 warnings Aleksander Alekseev <a.alekseev@postgrespro.ru>
Re: [HACKERS] [PATCH] Suppress Clang 3.9 warnings Noah Misch <noah@leadboat.com>
Re: [HACKERS] [PATCH] Suppress Clang 3.9 warnings Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] [PATCH] Suppress Clang 3.9 warnings Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] [PATCH] Suppress Clang 3.9 warnings Noah Misch <noah@leadboat.com>
Re: [HACKERS] [PATCH] Suppress Clang 3.9 warnings Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCH] Suppress Clang 3.9 warnings Aleksander Alekseev <a.alekseev@postgrespro.ru>
Re: [HACKERS] [PATCH] Suppress Clang 3.9 warnings Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Hello Aleksander, > ``` > xloginsert.c:742:18: warning: implicit conversion from 'int' to 'char' > changes value from 253 to -3 [-Wconstant-conversion] > ``` There is a bunch of these in "xlog.c" as well, and the same code is used in "pg_resetwal.c". > Patch that fixes these warnings is attached to this email. My 0.02€: I'm not at ease at putting the thing bluntly under the carpet with a cast. Why not update the target type to "unsigned char" instead, so that no cast is needed and the value compatibility is checked by the compiler? I guess there would be some more changes (question is how much), but it would be cleaner. -- Fabien.
В списке pgsql-hackers по дате отправления