Re: mingw compilation problem-> warning: implicit declaration of function `bzero' - Mailing list pgsql-admin

From Tom Lane
Subject Re: mingw compilation problem-> warning: implicit declaration of function `bzero'
Date
Msg-id 7590.1169924161@sss.pgh.pa.us
Whole thread Raw
In response to mingw compilation problem-> warning: implicit declaration of function `bzero'  ("Rajesh Kumar Mallah" <mallah.rajesh@gmail.com>)
Responses Re: mingw compilation problem-> warning: implicit declaration of function `bzero'
List 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 by date:

Previous
From: "Rajesh Kumar Mallah"
Date:
Subject: mingw compilation problem-> warning: implicit declaration of function `bzero'
Next
From: Bruno Wolff III
Date:
Subject: Re: cluster or database?