tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Compilation warning on current (4.99.53) sys/net/if.c



        Subject says it all, recently updated and was building for the
ev64260.  Yes I know, no one builds without INET6 set, but that's what
I'm building until I start on the real hardware.  Once more, just wanted
to let you all know.

        The warning:

NetBSD_current/src/sys/net/if.c: In function 'ifioctl':
NetBSD_current/src/sys/net/if.c:1510: warning: unused variable 's'

        This is used to elevate the spl for one call, s holding the
current level.  Only used in this place, I would probably declare 's' in
the context of the 'if' where this call was made.  However, being a bit
uncertain about how it might be fixed used the more cluttered:

Index: sys/net/if.c
===================================================================
RCS file: /cvsroot/src/sys/net/if.c,v
retrieving revision 1.216
diff -r1.216 if.c
1510c1510,1513
<       int s, error = 0;
---
>       int error = 0;
> #ifdef INET6
>       int s;
> #endif




Home | Main Index | Thread Index | Old Index