Current-Users archive

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

Re: build failure - nfs_boot



On Mon, 27 Oct 2008, Paul Goyette wrote:

Sources just updated a few minutes ago....

--- nfs_boot.o ---
cc1: warnings being treated as errors
/build/src/sys/rump/fs/lib/libnfs/../../../../nfs/nfs_boot.c: In function 'nfs_boot_init': /build/src/sys/rump/fs/lib/libnfs/../../../../nfs/nfs_boot.c:109: warning: unused variable 'flags'

Not seeing anyone else respond to this, I've come up with the following patch which will at least allow nfs_boot.c to compile under rump.

Index: nfs_boot.c
===================================================================
RCS file: /cvsroot/src/sys/nfs/nfs_boot.c,v
retrieving revision 1.76
diff -u -p -r1.76 nfs_boot.c
--- nfs_boot.c  27 Oct 2008 10:58:22 -0000      1.76
+++ nfs_boot.c  27 Oct 2008 13:04:47 -0000
@@ -106,7 +106,10 @@ nfs_boot_init(struct nfs_diskless *nd, s
 {
        struct ifnet *ifp;
        int error = 0;
+#if defined(NFS_BOOT_BOOTSTATIC) || defined(NFS_BOOT_BOOTP) || \
+    defined(NFS_BOOT_DHCP) || defined(NFS_BOOT_BOOTPARAM)
        int flags = 0;
+#endif

        /*
         * Find the network interface.


----------------------------------------------------------------------
|   Paul Goyette   | PGP DSS Key fingerprint: |  E-mail addresses:   |
| Customer Service | FA29 0E3B 35AF E8AE 6651 |  paul%whooppee.com@localhost   |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette%juniper.net@localhost |
----------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index