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
Index: src/bin/pg_id/pg_id.c
===================================================================
RCS file: /projects/cvsroot/pgsql-server/src/bin/pg_id/pg_id.c,v
retrieving revision 1.21
diff -c -r1.21 pg_id.c
*** src/bin/pg_id/pg_id.c 4 Aug 2003 23:59:39 -0000 1.21
--- src/bin/pg_id/pg_id.c 7 Aug 2003 17:24:01 -0000
***************
*** 32,38 ****
struct passwd *pw;
extern int optind;
- extern char *optarg;
while ((c = getopt(argc, argv, "nru")) != -1)
{
--- 32,37 ----
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend