Discussion:
Unused parameter in binary-io.h?
Reuben Thomas
2018-03-05 21:50:34 UTC
Permalink
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
Post by Reuben Thomas
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
Post by Paul Eggert
Post by Reuben Thomas
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...