]> git.ipfire.org Git - thirdparty/make.git/commitdiff
Fix GCC compile warning for "unused-parameter" on Windows
authorTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Fri, 9 Jun 2023 14:09:55 +0000 (16:09 +0200)
committerPaul Smith <psmith@gnu.org>
Sat, 1 Jul 2023 16:49:24 +0000 (12:49 -0400)
* 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.

src/w32/compat/posixfcn.c
src/w32/w32os.c

index a89c0657f1d8ac5d12945a08c3657de83a7834ad..314abe732cf627c9d1f7963ef230f3ba847b708b 100644 (file)
@@ -141,7 +141,7 @@ isatty (int fd)
 }
 
 char *
-ttyname (int fd)
+ttyname (int fd UNUSED)
 {
   /* This "knows" that Make only asks about stdout and stderr.  A more
      sophisticated implementation should test whether FD is open for
index 015b685e3550e5a6915ac3e04b51001baf686e9e..5594d818480cda2ef7eb1908960a97d4f18a2264 100644 (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.
    The Windows implementation doesn't support load detection.  */
 unsigned int
-jobserver_acquire (int timeout)
+jobserver_acquire (int timeout UNUSED)
 {
     HANDLE *handles;
     DWORD dwHandleCount;
@@ -513,5 +513,5 @@ fd_noinherit(int fd)
 }
 
 void
-fd_set_append (int fd)
+fd_set_append (int fd UNUSED)
 {}