]> Savannah Git Hosting - gnulib.git/commitdiff
fopen: Silence a gcc warning.
authorBruno Haible <bruno@clisp.org>
Tue, 2 May 2023 18:50:05 +0000 (20:50 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 2 May 2023 18:50:05 +0000 (20:50 +0200)
* lib/fopen.c (rpl_fopen): Mark open_direction as used.

ChangeLog
lib/fopen.c

index d3f092b9469f700b08481a524ce6747231c681b0..1486c3f894fc1a5f84ddf094ec9d553cb1c606d4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-05-02  Bruno Haible  <bruno@clisp.org>
+
+       fopen: Silence a gcc warning.
+       * lib/fopen.c (rpl_fopen): Mark open_direction as used.
+
 2023-05-01  Paul Eggert  <eggert@cs.ucla.edu>
 
        extern-inline: port to pcc
index f8469a0bbc04f1eb54f39835d150081b61b8000f..e1e4cdbd2351e73f56f6dd02149eb066aa6b228e 100644 (file)
@@ -225,5 +225,9 @@ rpl_fopen (const char *filename, const char *mode)
     }
 #endif
 
+  /* open_direction is sometimes used, sometimes unused.
+     Silence gcc's warning about this situation.  */
+  (void) open_direction;
+
   return orig_fopen (filename, mode);
 }