Add some casts to try to silence most of the remaining format warnings on MinGW-W64.
This commit is contained in:
parent
c02d5b7c27
commit
ab0ba6e73a
@ -3304,7 +3304,7 @@ BackendStartup(Port *port)
|
|||||||
/* in parent, successful fork */
|
/* in parent, successful fork */
|
||||||
ereport(DEBUG2,
|
ereport(DEBUG2,
|
||||||
(errmsg_internal("forked new backend, pid=%d socket=%d",
|
(errmsg_internal("forked new backend, pid=%d socket=%d",
|
||||||
(int) pid, port->sock)));
|
(int) pid, (int) port->sock)));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Everything's been successful, it's safe to add this backend to our list
|
* 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)
|
|||||||
{
|
{
|
||||||
ereport(LOG,
|
ereport(LOG,
|
||||||
(errmsg("could not duplicate socket %d for use in backend: error code %d",
|
(errmsg("could not duplicate socket %d for use in backend: error code %d",
|
||||||
src, WSAGetLastError())));
|
(int) src, WSAGetLastError())));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -634,7 +634,7 @@ syslogger_forkexec(void)
|
|||||||
#else /* WIN32 */
|
#else /* WIN32 */
|
||||||
if (syslogFile != NULL)
|
if (syslogFile != NULL)
|
||||||
snprintf(filenobuf, sizeof(filenobuf), "%ld",
|
snprintf(filenobuf, sizeof(filenobuf), "%ld",
|
||||||
_get_osfhandle(_fileno(syslogFile)));
|
(long) _get_osfhandle(_fileno(syslogFile)));
|
||||||
else
|
else
|
||||||
strcpy(filenobuf, "0");
|
strcpy(filenobuf, "0");
|
||||||
#endif /* WIN32 */
|
#endif /* WIN32 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user