Re: svn commit: r268491 - head/usr.bin/users

看板FB_svn作者時間11年前 (2014/07/13 05:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串27/30 (看更多)
On 10 Jul 2014, at 17:29, Ed Schouten <ed@80386.nl> wrote: > On 10 July 2014 17:23, Pietro Cerutti <gahr@freebsd.org> wrote: >> It's because of the standard library. Examples: >> >> /usr/include/c++/v1/memory:1454:47: error: unused parameter '__a' >> [-Werror,-Wunused-parameter] >> static void construct(allocator_type& __a, _Tp* __p) >> >> /usr/include/c++/v1/__functional_base:85:12: error: cast from 'const >> volatile char *' to 'wchar_t *' increases required alignment from 1 to 4 >> [-Werror,-Wcast-align] >> return (_Tp*)&reinterpret_cast<const volatile char&>(__x); > > Then I would suggest that these specific warnings (-Wunused-parameter) > were to be disabled for C++ programs. The actual consumers should not > have to lower their WARNS, simply because the standard library is > broken. IMHO it is not broken at all, but for some reason we compile everything with -Wsystem-headers when WARNS=1 or higher. :-) -Dimitry _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
文章代碼(AID): #1JmQbIJa (FB_svn)
討論串 (同標題文章)
文章代碼(AID): #1JmQbIJa (FB_svn)