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

From Hannes Eder
Subject minor compiler warning in libpg/fe-secure.c on win32 (msvc)
Date
Msg-id 4702BC0F.20803@HannesEder.net
Whole thread Raw
List pgsql-hackers
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

*** ../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];

pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Index
Next
From: Hannes Eder
Date:
Subject: Re: Latest ecpg patch broke MSVC build