From owner-freebsd-current@FreeBSD.ORG Fri Jul 20 15:40:39 2012 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7943F106564A for ; Fri, 20 Jul 2012 15:40:39 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) by mx1.freebsd.org (Postfix) with ESMTP id DE72A8FC16 for ; Fri, 20 Jul 2012 15:40:38 +0000 (UTC) Received: from [192.168.0.6] (host6.home.andric.com [192.168.0.6]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 39D925C37; Fri, 20 Jul 2012 17:40:32 +0200 (CEST) Message-ID: <50097BF0.9010103@FreeBSD.org> Date: Fri, 20 Jul 2012 17:40:32 +0200 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: Kim Culhan References: In-Reply-To: X-Enigmail-Version: 1.5a1pre Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-current@FreeBSD.org Subject: Re: -current build failure X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jul 2012 15:40:39 -0000 On 2012-07-20 16:49, Kim Culhan wrote: > Seeing this for r:238655 ... > In file included from /usr/src/sys/modules/dtrace/dtrace/../../../sys/pcpu.h:44: > ./machine/pcpu.h:226:13: error: indirection of non-volatile null > pointer will be deleted, not trap > [-Werror,-Wnull-dereference] > : "m" (*(char *)OFFSETOF_CURTHREAD)); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~ > ./machine/pcpu.h:226:13: note: consider using __builtin_trap() or > qualifying pointer with 'volatile' That's indeed a valid warning from clang, since OFFSETOF_CURTHREAD is usually zero. It's probably due to recent work on dtrace. I'm not in the neighborhood of a FreeBSD box right now to verify, but can you please try to change the cast to "(volatile char *)"? That should fix the warning.