I get the following warning when I compile src/bin/pg_id/pg_id.c:

Bruce Momjian <bruce@momjian.us>

Commit: 329a1b72700ee11cd900b2c2061c7394965906d0
Author: Bruce Momjian <bruce@momjian.us>
Date: 2003-08-09T01:25:46Z
Releases: 7.4.1
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

Files

PathChange+/−
src/bin/pg_id/pg_id.c modified +1 −2