Skip site navigation (1) Skip section navigation (2)

Re: explicit (void *) casts

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: explicit (void *) casts
Date: 2010-04-28 18:34:48
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
"Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov> writes:
> I'm wondering the reason that I see (void *) casts for function call
> parameters which are pointers to specific structures.  Do some
> compilers generate warnings if these are omitted?

There are some places where we do that to suppress warnings, yes.
Any particular place where you think it's unnecessary?

			regards, tom lane

In response to


pgsql-hackers by date

Next:From: Heikki LinnakangasDate: 2010-04-28 18:38:42
Subject: Re: Add column if not exists (CINE)
Previous:From: Simon RiggsDate: 2010-04-28 18:34:33
Subject: Re: pg_start_backup and pg_stop_backup Re: Re: [COMMITTERS] pgsql: Make CheckRequiredParameterValues() depend upon correct

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group