diff options
author | Bruno Haible <bruno@clisp.org> | 2023-05-02 20:50:05 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2023-05-02 20:50:05 +0200 |
commit | d43dafef78dce10155a1d7d37ba68d704dd9d00b (patch) | |
tree | bd0e7e48049e877abe0092f4483fac7b2b1d7999 /lib | |
parent | 20022b888d0da7f927fd18cb8f18d78f8ac03107 (diff) | |
download | gnulib-d43dafef78dce10155a1d7d37ba68d704dd9d00b.tar.gz |
fopen: Silence a gcc warning.
* lib/fopen.c (rpl_fopen): Mark open_direction as used.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/fopen.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/fopen.c b/lib/fopen.c index f8469a0bbc..e1e4cdbd23 100644 --- a/lib/fopen.c +++ b/lib/fopen.c @@ -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); } |