Fix GCC compile warning for "unused-parameter" on Windows

* src/w32/compat/posixfcn.c (isatty): Avoid unused-parameter warnings.
(jobserver_pre_child): Ditto.
(jobserver_post_child): Ditto.
(jobserver_acquire): Ditto.
(fd_set_append): Ditto.
This commit is contained in:
Torbjörn SVENSSON 2023-06-09 16:09:55 +02:00 committed by Paul Smith
parent 8e5c96c318
commit b686980c66
2 changed files with 5 additions and 5 deletions

View File

@ -141,7 +141,7 @@ isatty (int fd)
} }
char * char *
ttyname (int fd) ttyname (int fd UNUSED)
{ {
/* This "knows" that Make only asks about stdout and stderr. A more /* This "knows" that Make only asks about stdout and stderr. A more
sophisticated implementation should test whether FD is open for sophisticated implementation should test whether FD is open for

View File

@ -338,11 +338,11 @@ jobserver_signal ()
{ {
} }
void jobserver_pre_child (int recursive) void jobserver_pre_child (int recursive UNUSED)
{ {
} }
void jobserver_post_child (int recursive) void jobserver_post_child (int recursive UNUSED)
{ {
} }
@ -354,7 +354,7 @@ jobserver_pre_acquire ()
/* Returns 1 if we got a token, or 0 if a child has completed. /* Returns 1 if we got a token, or 0 if a child has completed.
The Windows implementation doesn't support load detection. */ The Windows implementation doesn't support load detection. */
unsigned int unsigned int
jobserver_acquire (int timeout) jobserver_acquire (int timeout UNUSED)
{ {
HANDLE *handles; HANDLE *handles;
DWORD dwHandleCount; DWORD dwHandleCount;
@ -513,5 +513,5 @@ fd_noinherit(int fd)
} }
void void
fd_set_append (int fd) fd_set_append (int fd UNUSED)
{} {}