Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ab0ba6e

Browse files
committed
Add some casts to try to silence most of the remaining format warnings on MinGW-W64.
1 parent c02d5b7 commit ab0ba6e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/backend/postmaster/postmaster.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3304,7 +3304,7 @@ BackendStartup(Port *port)
33043304
/* in parent, successful fork */
33053305
ereport(DEBUG2,
33063306
(errmsg_internal("forked new backend, pid=%d socket=%d",
3307-
(int) pid, port->sock)));
3307+
(int) pid, (int) port->sock)));
33083308

33093309
/*
33103310
* Everything's been successful, it's safe to add this backend to our list
@@ -4809,7 +4809,7 @@ write_inheritable_socket(InheritableSocket *dest, SOCKET src, pid_t childpid)
48094809
{
48104810
ereport(LOG,
48114811
(errmsg("could not duplicate socket %d for use in backend: error code %d",
4812-
src, WSAGetLastError())));
4812+
(int) src, WSAGetLastError())));
48134813
return false;
48144814
}
48154815
}

src/backend/postmaster/syslogger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ syslogger_forkexec(void)
634634
#else /* WIN32 */
635635
if (syslogFile != NULL)
636636
snprintf(filenobuf, sizeof(filenobuf), "%ld",
637-
_get_osfhandle(_fileno(syslogFile)));
637+
(long) _get_osfhandle(_fileno(syslogFile)));
638638
else
639639
strcpy(filenobuf, "0");
640640
#endif /* WIN32 */

0 commit comments

Comments
 (0)