Re: checksum_impl.h fails cpluspluscheck

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: checksum_impl.h fails cpluspluscheck
Дата
Msg-id CAM3SWZRa8J1zk1C6hghiXXKTy+r1KevPDBzTR1245uC_O7bvbg@mail.gmail.com
обсуждение исходный текст
Ответ на checksum_impl.h fails cpluspluscheck  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
On Sat, Jun 29, 2013 at 8:55 PM, Peter Eisentraut <peter_e@gmx.net> wrote:
> ./src/include/storage/checksum_impl.h: In function ‘uint32 pg_checksum_block(char*, uint32)’:
> ./src/include/storage/checksum_impl.h:154: warning: comparison between signed and unsigned integer expressions

On the subject of checksum_impl.h, don't you think it's a bit
unfortunate that clients have to do this?:

+ // checksum_impl.h uses Assert, which doesn't work outside the server
+ #undef Assert
+ #define Assert(X)
+
+ #include "storage/checksum_impl.h"
+

Maybe external utilities ought to include another header that does all
of this for them?

--
Peter Geoghegan



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: checksum_impl.h fails cpluspluscheck
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: pg_ctl and -h/help