]> granicus.if.org Git - postgresql/commit
I get the following warning when I compile src/bin/pg_id/pg_id.c:
authorBruce Momjian <bruce@momjian.us>
Sat, 9 Aug 2003 01:25:46 +0000 (01:25 +0000)
committerBruce Momjian <bruce@momjian.us>
Sat, 9 Aug 2003 01:25:46 +0000 (01:25 +0000)
commit329a1b72700ee11cd900b2c2061c7394965906d0
tree27e88a1d1d0b2c6bc93666e3ca5309346036ec40
parentcf3cc7576c1ef388534c5994f29a6335e00a5c71
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 Conway
src/bin/pg_id/pg_id.c