Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit329a1b7

Browse files
committed
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 -MMDpg_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
1 parentcf3cc75 commit329a1b7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎src/bin/pg_id/pg_id.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 2000-2003, PostgreSQL Global Development Group
88
*
9-
* $Header: /cvsroot/pgsql/src/bin/pg_id/Attic/pg_id.c,v 1.21 2003/08/04 23:59:39 tgl Exp $
9+
* $Header: /cvsroot/pgsql/src/bin/pg_id/Attic/pg_id.c,v 1.22 2003/08/09 01:25:46 momjian Exp $
1010
*/
1111
#include"postgres_fe.h"
1212

@@ -32,7 +32,6 @@ main(int argc, char *argv[])
3232
structpasswd*pw;
3333

3434
externintoptind;
35-
externchar*optarg;
3635

3736
while ((c=getopt(argc,argv,"nru"))!=-1)
3837
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp