Re: -current build failure

看板FB_current作者時間13年前 (2012/07/22 04:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串11/21 (看更多)
On Fri, Jul 20, 2012 at 11:40 AM, Dimitry Andric <dim@freebsd.org> wrote: > 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. Yes it did, I know there are many considerations wrt to this warning. thanks -kim _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1G2n73L0 (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1G2n73L0 (FB_current)