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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: mingw compilation problem-> warning: implicit declaration of function `bzero'
Дата
Msg-id 7590.1169924161@sss.pgh.pa.us
обсуждение исходный текст
Ответ на mingw compilation problem-> warning: implicit declaration of function `bzero'  ("Rajesh Kumar Mallah" <mallah.rajesh@gmail.com>)
Ответы Re: mingw compilation problem-> warning: implicit declaration of function `bzero'  (james fu <jfu62@yahoo.com>)
Список pgsql-admin
"Rajesh Kumar Mallah" <mallah.rajesh@gmail.com> 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

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

Предыдущее
От: "Rajesh Kumar Mallah"
Дата:
Сообщение: mingw compilation problem-> warning: implicit declaration of function `bzero'
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: cluster or database?