fix compile warning in pg_id

fix compile warning in pg_id

Post by Bruce Momji » Sat, 09 Aug 2003 04:10:34



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.

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


> 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... ]

Quote:

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

--
  Bruce Momjian                        |  http://candle.pha.pa.us

  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

 
 
 

1. fix compile warning in pg_id

Patch applied.  Thanks.

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

[ Attachment, skipping... ]

--
  Bruce Momjian                        |  http://candle.pha.pa.us

  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faqs/FAQ.html

2. Updating records with MS-Datagrid

3. WARNING WARNING WARNING

4. SendKeys "{tab}" doesn't work

5. compile warnings in CVS

6. problem with a simple query from VB to SQL server

7. 4GL Compile Warning: Global CSE elimination ....

8. Maximum stored procedure, function, trigger, or view nesting level exceeded (limit 32) ???

9. compile warnings in CVS HEAD

10. Warnings when compiling in i4gl or using c4gl.

11. warning compiling ADOX objects whit import directive VC++

12. compile warnings

13. more compile warnings