Re: Zero initialisers again

From: Russell King (rmk@arm.linux.org.uk)
Date: Mon Aug 14 2000 - 12:57:15 EST


Stuart MacDonald writes:
> From: "Russell King" <rmk@arm.linux.org.uk>
> > -int sysctl_tcp_stdurg;
> > -int sysctl_tcp_rfc1337;
> > +int sysctl_tcp_stdurg = 0;
> > +int sysctl_tcp_rfc1337 = 0;
> >
> > We no longer need to explicitly initialise any variable to zero. Why is
> > this change required?
>
> Removes compiler warnings?

Since when does:

int sysctl_tcp_stdurg;

issue compiler warnings?
   _____
  |_____| ------------------------------------------------- ---+---+-
  | | Russell King rmk@arm.linux.org.uk --- ---
  | | | | http://www.arm.linux.org.uk/personal/aboutme.html / / |
  | +-+-+ --- -+-
  / | THE developer of ARM Linux |+| /|\
 / | | | --- |
    +-+-+ ------------------------------------------------- /\\\ |

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Aug 15 2000 - 21:00:34 EST