Re: fix compile warning in pg_id

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: fix compile warning in pg_id
Date: 2003-08-07 19:10:34
Message-ID: 200308071910.h77JAY613970@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


Your patch has been added to the PostgreSQL unapplied patches list at:

http://momjian.postgresql.org/cgi-bin/pgpatches

I will try to apply it within the next 48 hours.

---------------------------------------------------------------------------

Neil Conway wrote:
> I get the following warning when I compile src/bin/pg_id/pg_id.c:
>
> gcc -pipe -g -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/include -c -o pg_id.o pg_id.c -MMD
> pg_id.c: In function `main':
> pg_id.c:35: warning: unused variable `optarg'
>
> The attached trivial patch fixes the warning by removing the variable.
>
> -Neil
>

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Larry Rosenman 2003-08-08 02:57:19 Preliminary UnixWare threads stuff
Previous Message Andrew Dunstan 2003-08-07 19:09:34 cidr docco