Discussion:
Unused parameter in binary-io.h?
(too old to reply)
Reuben Thomas
2018-03-05 21:50:34 UTC
Permalink
Raw Message
I get the following warnings when compiling with that header on a GNU system:

../lib/binary-io.h: In function ‘__gl_setmode_check’:
../lib/binary-io.h:62:25: warning: unused parameter ‘fd’ [-Wunused-parameter]
__gl_setmode_check (int fd) { return 0; }

Is there some reason that the unused parameter is not suitably
decorated for gcc?

--
https://rrt.sc3d.org
Paul Eggert
2018-03-05 23:32:06 UTC
Permalink
Raw Message
On 03/05/2018 01:50 PM, Reuben Thomas wrote:
> Is there some reason that the unused parameter is not suitably
> decorated for gcc?

I expect it is because nobody has gotten around to it. I installed the
attached.
Reuben Thomas
2018-03-05 23:44:38 UTC
Permalink
Raw Message
On 5 March 2018 at 23:32, Paul Eggert <***@cs.ucla.edu> wrote:
> On 03/05/2018 01:50 PM, Reuben Thomas wrote:
>>
>> Is there some reason that the unused parameter is not suitably
>> decorated for gcc?
>
>
> I expect it is because nobody has gotten around to it. I installed the
> attached.

Thanks very much! I wasn't sure; often I trip over subtleties in
gnulib (understandably, given what it does).

--
https://rrt.sc3d.org
Loading...