pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
mingw compilation problem-> warning: implicit declaration of function `bzero'
3+ messages / 3 participants
[nested] [flat]

* mingw compilation problem-> warning: implicit declaration of function `bzero'
@ 2007-01-27 18:38  Rajesh Kumar Mallah <mallah.rajesh@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Rajesh Kumar Mallah @ 2007-01-27 18:38 UTC (permalink / raw)
  To: pgsql-admin

hi,
this is not really a postgres issue.

i am trying to compile a trigger function under MINGW32. its giving the
said warning. the call of bzero is

 bzero(data, sizeof(AuditData));

$  gcc --version
gcc.exe (GCC) 3.4.2 (mingw-special)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

the code compiles fine under linux gcc (version not sure)

can anyone please suggest how to prevent this warning.

regds
mallah.



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: mingw compilation problem-> warning: implicit declaration of function `bzero'
@ 2007-01-27 18:56  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Rajesh Kumar Mallah <mallah.rajesh@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2007-01-27 18:56 UTC (permalink / raw)
  To: Rajesh Kumar Mallah <mallah.rajesh@gmail.com>; +Cc: 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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: mingw compilation problem-> warning: implicit declaration of function `bzero'
@ 2007-01-29 02:00  james fu <jfu62@yahoo.com>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: james fu @ 2007-01-29 02:00 UTC (permalink / raw)
  To: 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.

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2007-01-29 02:00 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-01-27 18:38 mingw compilation problem-> warning: implicit declaration of function `bzero' Rajesh Kumar Mallah <mallah.rajesh@gmail.com>
2007-01-27 18:56 ` Tom Lane <tgl@sss.pgh.pa.us>
2007-01-29 02:00   ` james fu <jfu62@yahoo.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox