From owner-freebsd-questions@FreeBSD.ORG Thu Apr 10 04:25:26 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0472B106566B for ; Thu, 10 Apr 2008 04:25:26 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id EE1858FC2C for ; Thu, 10 Apr 2008 04:25:18 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.2/8.13.8) with ESMTP id m3A4P5fW006020; Thu, 10 Apr 2008 06:25:05 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.2/8.13.8/Submit) with ESMTP id m3A4Osh0006017; Thu, 10 Apr 2008 06:24:57 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Thu, 10 Apr 2008 06:24:54 +0200 (CEST) From: Wojciech Puchar To: Rudy In-Reply-To: <47FD6C19.3020601@monkeybrains.net> Message-ID: <20080410062441.U6016@wojtek.tensor.gdynia.pl> References: <47FD6C19.3020601@monkeybrains.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions Subject: Re: patch for kern_clock.c X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Apr 2008 04:25:26 -0000 sent it as sent-pr, not to mailing list i think On Wed, 9 Apr 2008, Rudy wrote: > > > I have a machine with 6.3-STABLE in /usr/src. The system is a 5.5 kernel > (not sure if this matters). > > Any how, buildkernel fails. Ther error: > /usr/src/sys/kern/kern_clock.c: In function `sysctl_kern_cp_times': > /usr/src/sys/kern/kern_clock.c:123: warning: unused variable `i' > > > The patch for kern_clock.c: > > > --- kern_clock.c.orig Wed Apr 9 18:18:27 2008 > +++ kern_clock.c Wed Apr 9 18:18:07 2008 > @@ -120,9 +120,10 @@ > { > struct pcpu *pcpu; > int error; > - int i, c; > + int c; > long *cp_time; > #ifdef SCTL_MASK32 > + int i; > unsigned int cp_time32[CPUSTATES]; > #endif > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > >