]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
When building with clang, disable -Wunneeded-internal-declaration for
authordim <dim@FreeBSD.org>
Tue, 21 Feb 2012 20:55:43 +0000 (20:55 +0000)
committerdim <dim@FreeBSD.org>
Tue, 21 Feb 2012 20:55:43 +0000 (20:55 +0000)
commit97a585876e728f80f43ab389448699d290cfa8c3
tree2367406e9a3bcc4b6dadcfcb2afc2238657fa63b
parent05b0baa9d7dec6b685d001a414527a5ed422f70a
When building with clang, disable -Wunneeded-internal-declaration for
several sys/cam/ctl files, since these get the following warnings:

In file included from sys/cam/ctl/ctl_backend.c:60:
sys/cam/ctl/ctl_private.h:300:30: error: variable 'page_index_template' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration]
static struct ctl_page_index page_index_template[] = {
                             ^

These warnings are tricky to fix without a lot of overhaul, and they are
harmless, so disable them for now.

MFC after: 1 week
sys/conf/files
sys/conf/kern.mk