I get the following warning when I compile src/bin/pg_id/pg_id.c:
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

lintzc/gpdb,janebeckman/gpdb,adam8157/gpdb,janebeckman/gpdb,tangp3/gpdb,ashwinstar/gpdb,chrishajas/gpdb,janebeckman/gpdb,cjcjameson/gpdb,royc1/gpdb,yuanzhao/gpdb,chrishajas/gpdb,ahachete/gpdb,edespino/gpdb,yuanzhao/gpdb,greenplum-db/gpdb,ovr/postgres-xl,foyzur/gpdb,oberstet/postgres-xl,0x0FFF/gpdb,Quikling/gpdb,pavanvd/postgres-xl,arcivanov/postgres-xl,jmcatamney/gpdb,tpostgres-projects/tPostgres,tangp3/gpdb,janebeckman/gpdb,atris/gpdb,zeroae/postgres-xl,randomtask1155/gpdb,lisakowen/gpdb,zeroae/postgres-xl,royc1/gpdb,foyzur/gpdb,oberstet/postgres-xl,edespino/gpdb,xinzweb/gpdb,ashwinstar/gpdb,techdragon/Postgres-XL,arcivanov/postgres-xl,kaknikhil/gpdb,kmjungersen/PostgresXL,jmcatamney/gpdb,Quikling/gpdb,rvs/gpdb,chrishajas/gpdb,pavanvd/postgres-xl,royc1/gpdb,greenplum-db/gpdb,lpetrov-pivotal/gpdb,tangp3/gpdb,zeroae/postgres-xl,snaga/postgres-xl,adam8157/gpdb,xuegang/gpdb,lintzc/gpdb,ovr/postgres-xl,50wu/gpdb,atris/gpdb,adam8157/gpdb,foyzur/gpdb,xuegang/gpdb,CraigHarris/gpdb,snaga/postgres-xl,CraigHarris/gpdb,lintzc/gpdb,rvs/gpdb,yazun/postgres-xl,greenplum-db/gpdb,rvs/gpdb,edespino/gpdb,rubikloud/gpdb,Chibin/gpdb,Quikling/gpdb,edespino/gpdb,janebeckman/gpdb,Postgres-XL/Postgres-XL,xuegang/gpdb,atris/gpdb,royc1/gpdb,0x0FFF/gpdb,lisakowen/gpdb,greenplum-db/gpdb,snaga/postgres-xl,Quikling/gpdb,50wu/gpdb,xuegang/gpdb,rvs/gpdb,cjcjameson/gpdb,chrishajas/gpdb,janebeckman/gpdb,Quikling/gpdb,ovr/postgres-xl,ashwinstar/gpdb,rubikloud/gpdb,postmind-net/postgres-xl,ovr/postgres-xl,zaksoup/gpdb,kaknikhil/gpdb,xuegang/gpdb,techdragon/Postgres-XL,jmcatamney/gpdb,atris/gpdb,oberstet/postgres-xl,ahachete/gpdb,lpetrov-pivotal/gpdb,postmind-net/postgres-xl,postmind-net/postgres-xl,edespino/gpdb,yuanzhao/gpdb,arcivanov/postgres-xl,yazun/postgres-xl,zeroae/postgres-xl,xuegang/gpdb,rvs/gpdb,randomtask1155/gpdb,ahachete/gpdb,adam8157/gpdb,chrishajas/gpdb,royc1/gpdb,ahachete/gpdb,postmind-net/postgres-xl,xinzweb/gpdb,yuanzhao/gpdb,Quikling/gpdb,rubikloud/gpdb,kmjungersen/PostgresXL,edespino/gpdb,rubikloud/gpdb,rubikloud/gpdb,xuegang/gpdb,lisakowen/gpdb,Chibin/gpdb,yuanzhao/gpdb,ashwinstar/gpdb,xuegang/gpdb,50wu/gpdb,foyzur/gpdb,0x0FFF/gpdb,tangp3/gpdb,cjcjameson/gpdb,tpostgres-projects/tPostgres,foyzur/gpdb,techdragon/Postgres-XL,yuanzhao/gpdb,edespino/gpdb,CraigHarris/gpdb,greenplum-db/gpdb,randomtask1155/gpdb,yazun/postgres-xl,lintzc/gpdb,xinzweb/gpdb,janebeckman/gpdb,zaksoup/gpdb,randomtask1155/gpdb,rvs/gpdb,0x0FFF/gpdb,CraigHarris/gpdb,Chibin/gpdb,chrishajas/gpdb,royc1/gpdb,kmjungersen/PostgresXL,kaknikhil/gpdb,janebeckman/gpdb,ahachete/gpdb,xinzweb/gpdb,rvs/gpdb,50wu/gpdb,Quikling/gpdb,rvs/gpdb,randomtask1155/gpdb,50wu/gpdb,0x0FFF/gpdb,randomtask1155/gpdb,foyzur/gpdb,kaknikhil/gpdb,kaknikhil/gpdb,cjcjameson/gpdb,cjcjameson/gpdb,janebeckman/gpdb,edespino/gpdb,lisakowen/gpdb,lisakowen/gpdb,Quikling/gpdb,ovr/postgres-xl,jmcatamney/gpdb,kaknikhil/gpdb,xuegang/gpdb,yuanzhao/gpdb,pavanvd/postgres-xl,adam8157/gpdb,xinzweb/gpdb,royc1/gpdb,yazun/postgres-xl,kmjungersen/PostgresXL,tpostgres-projects/tPostgres,edespino/gpdb,cjcjameson/gpdb,zaksoup/gpdb,Chibin/gpdb,jmcatamney/gpdb,cjcjameson/gpdb,tangp3/gpdb,ashwinstar/gpdb,arcivanov/postgres-xl,lintzc/gpdb,CraigHarris/gpdb,pavanvd/postgres-xl,lintzc/gpdb,greenplum-db/gpdb,xinzweb/gpdb,kaknikhil/gpdb,yuanzhao/gpdb,lpetrov-pivotal/gpdb,atris/gpdb,zaksoup/gpdb,rvs/gpdb,tangp3/gpdb,ahachete/gpdb,Chibin/gpdb,ahachete/gpdb,lpetrov-pivotal/gpdb,lisakowen/gpdb,Chibin/gpdb,jmcatamney/gpdb,lintzc/gpdb,cjcjameson/gpdb,chrishajas/gpdb,Postgres-XL/Postgres-XL,randomtask1155/gpdb,50wu/gpdb,zaksoup/gpdb,kaknikhil/gpdb,rubikloud/gpdb,Chibin/gpdb,lpetrov-pivotal/gpdb,xinzweb/gpdb,chrishajas/gpdb,lpetrov-pivotal/gpdb,foyzur/gpdb,atris/gpdb,0x0FFF/gpdb,Chibin/gpdb,ashwinstar/gpdb,CraigHarris/gpdb,CraigHarris/gpdb,Postgres-XL/Postgres-XL,lpetrov-pivotal/gpdb,cjcjameson/gpdb,lisakowen/gpdb,rubikloud/gpdb,lpetrov-pivotal/gpdb,adam8157/gpdb,kaknikhil/gpdb,pavanvd/postgres-xl,CraigHarris/gpdb,ashwinstar/gpdb,0x0FFF/gpdb,xinzweb/gpdb,janebeckman/gpdb,lintzc/gpdb,adam8157/gpdb,oberstet/postgres-xl,zaksoup/gpdb,foyzur/gpdb,snaga/postgres-xl,lisakowen/gpdb,jmcatamney/gpdb,Postgres-XL/Postgres-XL,Postgres-XL/Postgres-XL,adam8157/gpdb,postmind-net/postgres-xl,techdragon/Postgres-XL,techdragon/Postgres-XL,arcivanov/postgres-xl,oberstet/postgres-xl,zaksoup/gpdb,randomtask1155/gpdb,Chibin/gpdb,rubikloud/gpdb,tangp3/gpdb,greenplum-db/gpdb,cjcjameson/gpdb,atris/gpdb,CraigHarris/gpdb,tpostgres-projects/tPostgres,ahachete/gpdb,jmcatamney/gpdb,royc1/gpdb,kmjungersen/PostgresXL,50wu/gpdb,arcivanov/postgres-xl,edespino/gpdb,Chibin/gpdb,Quikling/gpdb,zaksoup/gpdb,yazun/postgres-xl,tangp3/gpdb,lintzc/gpdb,Quikling/gpdb,zeroae/postgres-xl,atris/gpdb,0x0FFF/gpdb,rvs/gpdb,yuanzhao/gpdb,ashwinstar/gpdb,tpostgres-projects/tPostgres,50wu/gpdb,snaga/postgres-xl,yuanzhao/gpdb,kaknikhil/gpdb,greenplum-db/gpdb