From owner-freebsd-current Fri Sep 13 1:41:50 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 64FDD37B400 for ; Fri, 13 Sep 2002 01:41:47 -0700 (PDT) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 72A1043E3B for ; Fri, 13 Sep 2002 01:41:46 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id SAA19660; Fri, 13 Sep 2002 18:38:31 +1000 Date: Fri, 13 Sep 2002 18:43:06 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Kris Kennaway Cc: current@FreeBSD.ORG Subject: Re: Alpha fatal warning in kernel compile In-Reply-To: <20020912202750.GA21944@xor.obsecurity.org> Message-ID: <20020913183115.O9223-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 12 Sep 2002, Kris Kennaway wrote: > How are you supposed to disable -Werror in kernel builds? Setting Not :-). You are supposed to fix errors and not ignore them. > ... > cc1: warnings being treated as errors > /local0/src2/sys/dev/ccd/ccd.c: In function `ccdiodone': > /local0/src2/sys/dev/ccd/ccd.c:1181: warning: long long int format, daddr_t arg (arg 6) > *** Error code 1 This is a routine printf format error. %lld format should only be used for printing long longs (which should never be used). Here the type is daddr_t, which happens to be int64_t, which happens to be plain long on alphas. Don't forget to fix the other error in the printf. 2 bio_blkno's are printed using 2 different wrong formats, but only 1 is warned about because the value of 1 of them is broken (cast) to be bug for bug compatible with its format. There are several more printf format errors hidden under options. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message