Silence compiler warning about unused variable on Windows.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 19 Apr 2011 11:54:48 +0000 (14:54 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 19 Apr 2011 11:54:48 +0000 (14:54 +0300)
src/interfaces/libpq/fe-connect.c

index 6eb6492535608492848323e07d603b84da7f8a93..cc76150cb3cc76864ddc1a542e4243d86fddec38 100644 (file)
@@ -1530,7 +1530,9 @@ keep_going:                                               /* We will come back to here until there is
 
                                        if (!IS_AF_UNIX(addr_cur->ai_family))
                                        {
+#ifndef WIN32
                                                int                     on = 1;
+#endif
                                                int                     usekeepalives = useKeepalives(conn);
                                                int                     err = 0;