summaryrefslogtreecommitdiff
path: root/solenv/inc
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-03-15 10:30:39 +0100
committerLuboš Luňák <l.lunak@suse.cz>2012-03-15 11:48:58 +0100
commitcc9a10185749210825fe6970ea4b103eb78e329e (patch)
tree4d10328022e03ce460627891184d6e5e870598eb /solenv/inc
parent370b3b6232a0851d68bb894c2b8ee71b9504384b (diff)
clang doesn't have a problem with -Wnon-virtual-dtor
Even if some older version possibly does, I doubt anybody would realistically use it.
Diffstat (limited to 'solenv/inc')
-rw-r--r--solenv/inc/unxgcc.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/solenv/inc/unxgcc.mk b/solenv/inc/unxgcc.mk
index 5ef9f9871569..4f9ebee6c816 100644
--- a/solenv/inc/unxgcc.mk
+++ b/solenv/inc/unxgcc.mk
@@ -148,6 +148,7 @@ CFLAGSWALLCC=$(CFLAGSWARNCC)
CFLAGSWALLCXX=$(CFLAGSWARNCXX)
CFLAGSWERRCC=-Werror -DLIBO_WERROR
+.IF "$(COM_GCC_IS_CLANG)" != "TRUE"
# Only GCC 4.6 has a fix for <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7302>
# "-Wnon-virtual-dtor should't complain of protected dtor" and supports #pragma
# GCC diagnostic push/pop required e.g. in cppuhelper/propertysetmixin.hxx to
@@ -158,6 +159,9 @@ CFLAGSWARNCXX += -Wno-non-virtual-dtor
.ELSE
CFLAGSWARNCXX += -Wnon-virtual-dtor
.END
+.ELSE
+CFLAGSWARNCXX += -Wnon-virtual-dtor
+.END
COMPILER_WARN_ERRORS=TRUE