Thread: minor compiler warning in libpg/fe-secure.c on win32 (msvc)
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];
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