summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--solenv/gbuild/platform/com_GCC_defs.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/solenv/gbuild/platform/com_GCC_defs.mk b/solenv/gbuild/platform/com_GCC_defs.mk
index 5b5a2bd3de03..1bb4017072c1 100644
--- a/solenv/gbuild/platform/com_GCC_defs.mk
+++ b/solenv/gbuild/platform/com_GCC_defs.mk
@@ -72,6 +72,14 @@ gb_CXXFLAGS_COMMON := \
-fno-common \
-pipe \
+# VCL_BUILDER_DECL_FACTORY (include/vcl/builderfactory.hxx) routinely causes
+# "'make...' has C-linkage specified, but returns user-defined type
+# 'VclPtr<vcl::Window>' which is incompatible with C
+# [-Werror,-Wreturn-type-c-linkage]":
+ifeq ($(COM_GCC_IS_CLANG),TRUE)
+gb_CXXFLAGS_COMMON += -Wno-return-type-c-linkage
+endif
+
gb_CXXFLAGS_Wundef = -Wno-undef
ifneq ($(HAVE_THREADSAFE_STATICS),TRUE)