Port-arm archive

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

Build error for NSLU2 - file ixp425_if_npe.c

When compiling current for the NSLU2 this afternoon, I received an error compiling the file ixp425_if_npe.c in src/sys/arch/arm/xscale. I apologize for not saving the output, but the error was due to the compiler setting to treat all warnings as errors. The warning was unused variable "ifr" in function npeioctl, line 1625. It is, in fact, unused, though it wasn't a week ago. I commented out the declaration for ifr (line 1625) and the file compiled ok. Here's the diff.

--- sys/arch/arm/xscale/ixp425_if_npe.c~ 2008-01-19 17:10:14.000000000 -0500
+++ sys/arch/arm/xscale/ixp425_if_npe.c 2008-01-25 18:31:38.000000000 -0500
@@ -1262,7 +1262,9 @@
npeioctl(struct ifnet *ifp, u_long cmd, void *data)
       struct npe_softc *sc = ifp->if_softc;
-       struct ifreq *ifr = (struct ifreq *)data;
+ *     struct ifreq *ifr = (struct ifreq *)data;
+ */
       int s, error = 0;

       s = splnet();

Thanks, Don

Home | Main Index | Thread Index | Old Index