Re: [rfc] removing/conditionalising WERROR= in Makefiles

看板FB_current作者時間14年前 (2011/12/30 21:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串14/16 (看更多)
On 12/30/2011 7:06 AM, Dimitry Andric wrote: > On 2011-12-26 11:10, Alexander Best wrote: >> that's why i'd like to propose the following patch. i ran a full >> tinderbox run >> against r228878 and it suceeded. > > Did you also try this with clang? For example the xfs module alone gets > a whole slew of warnings, which would be fatal if WERROR= was removed: > > sys/gnu/fs/xfs/xfs_dir2_block.c:1149:17: warning: array index of '1' > indexes past the end of an array (that contains 1 element) [-Warray-bounds] > dep->name[0] = dep->name[1] = '.'; > ^ ~ > sys/gnu/fs/xfs/xfs_dir2_data.h:90:2: note: array 'name' declared here > __uint8_t name[1]; /* name bytes, no null */ > ^ > 1 warning generated. <snip> just as an aside, the XFS module didn't seem to work when I last attempted to use it, so it may be worth just removing it? -- Chuck Burns The Southern Libertarian http://www.thesouthernlibertarian.com/ _______________________________________________ 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): #1E_RrN-L (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1E_RrN-L (FB_current)