diff options
Diffstat (limited to 'external/libcmis/StaticLibrary_cmis.mk')
-rw-r--r-- | external/libcmis/StaticLibrary_cmis.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/external/libcmis/StaticLibrary_cmis.mk b/external/libcmis/StaticLibrary_cmis.mk index eb5b4f5d581d..4eb1c97d017c 100644 --- a/external/libcmis/StaticLibrary_cmis.mk +++ b/external/libcmis/StaticLibrary_cmis.mk @@ -14,8 +14,12 @@ $(eval $(call gb_StaticLibrary_set_warnings_not_errors,cmislib)) ifeq ($(COM_IS_CLANG),TRUE) # Avoid narrowing conversion error (even though the option is technically a warning) # caused by boost. +# Also avoid -Wdynamic-exception-spec errors in C++17 mode. $(eval $(call gb_StaticLibrary_add_cxxflags,cmislib,\ -Wno-error=c++11-narrowing \ + $(if $(filter -std=gnu++17 -std=gnu++1z -std=c++17 -std=c++1z, \ + $(CXXFLAGS_CXX11)), \ + -Wno-error=dynamic-exception-spec) \ )) endif |