Re: mingw compilation problem-> warning: implicit declaration of function `bzero'

Поиск
Список
Период
Сортировка
От james fu
Тема Re: mingw compilation problem-> warning: implicit declaration of function `bzero'
Дата
Msg-id 102834.15834.qm@web55102.mail.re4.yahoo.com
обсуждение исходный текст
Ответ на Re: mingw compilation problem-> warning: implicit declaration of function `bzero'  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
could you un-subscribe me - JFU62@yahoo.com?
 
Thank you for the help!

Tom Lane <tgl@sss.pgh.pa.us> wrote:
"Rajesh Kumar Mallah" writes:
> i am trying to compile a trigger function under MINGW32. its giving the
> said warning. the call of bzero is
> bzero(data, sizeof(AuditData));

bzero() is long obsolete, and was never officially standard AFAIK.
Use memset() instead:

memset(data, 0, sizeof(AuditData));

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match


Never miss an email again!
Yahoo! Toolbar
alerts you the instant new Mail arrives. Check it out.

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

Предыдущее
От: Shane Ambler
Дата:
Сообщение: Re: cluster or database?
Следующее
От: Arnau
Дата:
Сообщение: Very strange postgresql behaviour