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

看板FB_current作者時間14年前 (2011/12/31 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串16/16 (看更多)
On 30 Dec 2011, at 13:06, Dimitry Andric wrote: > 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] I recall some discussion of this warning on the clang list a few months = ago, and I believe that it should now only appear if you are compiling = in a C99 or C11 dialect mode (the rationale is that any variable-length = structures in C99 should be using a zero-sized array as the final = element, while C89 lacked any ability to do this). =20 I suspect a lot of similar warnings are caused by the difference in = default dialects between clang and gcc. Adding an explicit -std=3Dc89 = to the cflags any modules that are using an archaic dialect of C may = silence a lot of these... David= _______________________________________________ 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_VnXoS (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1E_VnXoS (FB_current)