Subject: Re: newfs compilation fails
To: None <Havard.Eidnes@runit.sintef.no>
From: None <current-users-owner-current-users-archive=mail-archive.netbsd.org@NetBSD.ORG>
List: current-users
Date: 07/05/1997 11:21:42
Thus spake Havard.Eidnes@runit.sintef.no
> it seems that the mount sources aren't ready for WARNS=1.
> As a workaround I've commented out the setting of WARNS in newfs'
> Makefile.  This is with freshly SUPed sources as of yesterday.

The actual fixes seem almost as simple.

> cc1: warnings being treated as errors
> /usr/src/sbin/newfs/../mount/getmntopts.c: In function `getmntopts':
> /usr/src/sbin/newfs/../mount/getmntopts.c:67: warning: null format string

Just change the argument to "" instead of NULL.

> /usr/src/sbin/newfs/../mount/getmntopts.c: At top level:
> /usr/src/sbin/newfs/../mount/getmntopts.c:40: warning: `rcsid' defined but not used

Use the __RCSID macro.  See /usr/src/sbin/disklabel/disklabel.c for an
example.  See /usr/include/sys/cdefs.h if you want to know the details.

-- 
D'Arcy J.M. Cain                           |  Democracy is three wolves
darcy@{druid.net|vex.net}                  |  and a sheep voting on         
+1 416 424 2871     (DoD#0082)    (eNTP)   |  what's for dinner.
                --  http://www.druid.net/darcy  --