minor compiler warning in libpg/fe-secure.c on win32 (msvc)

Started by Hannes Ederover 18 years ago2 messages
#1Hannes Eder
Hannes@HannesEder.net
1 attachment(s)

Hi,

while rebuilding the entire project I ran across following warning:

.\src\interfaces\libpq\fe-secure.c(593): warning C4101: 'fp' :
unreferenced local variable

see attached diff for a fix.

-Hannes

Attachments:

fe-secure.c-200710021.difftext/x-diff; name=fe-secure.c-200710021.diffDownload
*** ../pgsql-cvshead/src/interfaces/libpq/fe-secure.c	Tue Oct  2 11:43:05 2007
--- src/interfaces/libpq/fe-secure.c	Tue Oct  2 23:37:48 2007
***************
*** 588,596 ****
  
  #ifndef WIN32
  	struct stat buf2;
  #endif
  	char		fnbuf[MAXPGPATH];
- 	FILE		*fp;
  	BIO			*bio;
  	PGconn		*conn = (PGconn *) SSL_get_app_data(ssl);
  	char		sebuf[256];
--- 588,596 ----
  
  #ifndef WIN32
  	struct stat buf2;
+ 	FILE		*fp;
  #endif
  	char		fnbuf[MAXPGPATH];
  	BIO			*bio;
  	PGconn		*conn = (PGconn *) SSL_get_app_data(ssl);
  	char		sebuf[256];
#2Neil Conway
neilc@samurai.com
In reply to: Hannes Eder (#1)
Re: minor compiler warning in libpg/fe-secure.c on win32 (msvc)

On Tue, 2007-10-02 at 23:45 +0200, Hannes Eder wrote:

while rebuilding the entire project I ran across following warning:

.\src\interfaces\libpq\fe-secure.c(593): warning C4101: 'fp' :
unreferenced local variable

Applied, thanks.

BTW, CC'ing hackers is not necessary for trivial patches like this.

-Neil