Re: fopen: Silence a gcc warning

2023-05-02 Thread Bruno Haible
Jeffrey Walton wrote: > > + /* open_direction is sometimes used, sometimes unused. > > + Silence gcc's warning about this situation. */ > > + (void) open_direction; > > + > >return orig_fopen (filename, mode); > > } > > It may be a good idea to hide it behind a self-documenting macro:

Re: fopen: Silence a gcc warning

2023-05-02 Thread Jeffrey Walton
oid link error w.r.t. > to modules fopen vs. fopen-gnu. > - In AC_LIBOBJ compilation units, Gnulib's override of the CFLAGS with > -Wno-error has no effect. > > The easiest fix is the following: > > > 2023-05-02 Bruno Haible > > fopen: Silence a gc

fopen: Silence a gcc warning

2023-05-02 Thread Bruno Haible
o-error has no effect. The easiest fix is the following: 2023-05-02 Bruno Haible fopen: Silence a gcc warning. * lib/fopen.c (rpl_fopen): Mark open_direction as used. diff --git a/lib/fopen.c b/lib/fopen.c index f8469a0bbc..e1e4cdbd23 100644 --- a/lib/fopen.c +++ b/lib/fopen.c