Re: Portability issues in shm_mq

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Portability issues in shm_mq
Дата
Msg-id CA+TgmoZKVLRXP-WRW2rFt9__uUiM+MvitasoWYQbaOt873FtoA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Portability issues in shm_mq  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Portability issues in shm_mq  (andres@anarazel.de (Andres Freund))
Список pgsql-hackers
On Tue, Mar 18, 2014 at 1:16 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> I wrote:
>> Early returns not good:
>
> Also, these compiler messages are probably relevant:
>
> ccache gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels
-Wmissing-format-attribute-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -fpic -I. -I.
-I../../src/include-D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/et  -c -o test.o test.c 
> test.c: In function 'test_shm_mq':
> test.c:89:3: warning: passing argument 2 of 'shm_mq_receive' from incompatible pointer type [enabled by default]
> In file included from test_shm_mq.h:18:0,
>                  from test.c:19:
> ../../src/include/storage/shm_mq.h:61:22: note: expected 'Size *' but argument is of type 'uint64 *'
> test.c: In function 'test_shm_mq_pipelined':
> test.c:198:4: warning: passing argument 2 of 'shm_mq_receive' from incompatible pointer type [enabled by default]
> In file included from test_shm_mq.h:18:0,
>                  from test.c:19:
> ../../src/include/storage/shm_mq.h:61:22: note: expected 'Size *' but argument is of type 'uint64 *'
> ccache gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels
-Wmissing-format-attribute-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -fpic -I. -I.
-I../../src/include-D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/et  -c -o setup.o setup.c 
> ccache gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels
-Wmissing-format-attribute-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -fpic -I. -I.
-I../../src/include-D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/et  -c -o worker.o worker.c 
> worker.c: In function 'copy_messages':
> worker.c:193:3: warning: passing argument 2 of 'shm_mq_receive' from incompatible pointer type [enabled by default]
> In file included from worker.c:25:0:
> ../../src/include/storage/shm_mq.h:61:22: note: expected 'Size *' but argument is of type 'uint64 *'
>
> I'm thinking maybe you just forgot to update the contrib module.

Well, I definitely forgot that.  I'll count myself lucky if that's the
only problem.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Portability issues in shm_mq
Следующее
От: andres@anarazel.de (Andres Freund)
Дата:
Сообщение: Re: Portability issues in shm_mq