From owner-freebsd-current Wed Nov 4 00:06:43 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA14134 for freebsd-current-outgoing; Wed, 4 Nov 1998 00:06:43 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from smtp01.wxs.nl (smtp01.wxs.nl [195.121.6.61]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA14128 for ; Wed, 4 Nov 1998 00:06:40 -0800 (PST) (envelope-from asmodai@wxs.nl) Received: from chronias.ninth-circle.org ([195.121.59.98]) by smtp01.wxs.nl (Netscape Messaging Server 3.6) with ESMTP id AAA56CE; Wed, 4 Nov 1998 09:06:30 +0100 Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <199811040611.WAA20667@bubba.whistle.com> Date: Wed, 04 Nov 1998 09:10:25 +0100 (CET) Organization: Ninth Circle Enterprises From: Jeroen Ruigrok/Asmodai To: Archie Cobbs Subject: Re: Current 'make world' warnings cleanup Cc: current@FreeBSD.ORG, ryany@pobox.com, (John Polstra) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 04-Nov-98 Archie Cobbs wrote: > John Polstra writes: >> Sounds good. Just one thing: don't fall prey to the temptation to >> fix all the pointer mismatch warnings by blindly inserting casts just >> to make the compiler shut up. That's a common mistake, and as often >> as not it simply hides the real problem from the compiler rather than >> fixing it. > > Another gotcha when doing this.. often "unused variable" warnings > happen because there is a variable declared that is only used > when certain #ifdef's are true. The solution in these cases is > not to remove the variable, but to enclose it's declaration > within equivalent #ifdef's.. So in general someone forgot to put them between the appropriate definition statements right? Either by mistake or whatever... --- Jeroen Ruigrok van der Werven/Asmodai [trying to get his C on par] asmodai(at)wxs.nl Junior Network/Security Specialist FreeBSD & picoBSD: The Power to Serve... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message