external/libcmis: Silence -Wdynamic-exception-spec errors
...with Clang in C++17 mode Change-Id: I50a0568c13e3e7a2d37ebd739d587985b2f9bc8a
This commit is contained in:
4
external/libcmis/StaticLibrary_cmis.mk
vendored
4
external/libcmis/StaticLibrary_cmis.mk
vendored
@@ -14,8 +14,12 @@ $(eval $(call gb_StaticLibrary_set_warnings_not_errors,cmislib))
|
|||||||
ifeq ($(COM_IS_CLANG),TRUE)
|
ifeq ($(COM_IS_CLANG),TRUE)
|
||||||
# Avoid narrowing conversion error (even though the option is technically a warning)
|
# Avoid narrowing conversion error (even though the option is technically a warning)
|
||||||
# caused by boost.
|
# caused by boost.
|
||||||
|
# Also avoid -Wdynamic-exception-spec errors in C++17 mode.
|
||||||
$(eval $(call gb_StaticLibrary_add_cxxflags,cmislib,\
|
$(eval $(call gb_StaticLibrary_add_cxxflags,cmislib,\
|
||||||
-Wno-error=c++11-narrowing \
|
-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
|
endif
|
||||||
|
|
||||||
|
@@ -13,10 +13,15 @@
|
|||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wdeprecated"
|
#pragma GCC diagnostic ignored "-Wdeprecated"
|
||||||
#pragma GCC diagnostic ignored "-Wunused-but-set-parameter"
|
#pragma GCC diagnostic ignored "-Wunused-but-set-parameter"
|
||||||
|
#elif defined __clang__ && __cplusplus > 201402L
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wdynamic-exception-spec"
|
||||||
#endif
|
#endif
|
||||||
#include <libcmis/libcmis.hxx>
|
#include <libcmis/libcmis.hxx>
|
||||||
#if defined __GNUC__ && __GNUC__ >= 7
|
#if defined __GNUC__ && __GNUC__ >= 7
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
|
#elif defined __clang__ && __cplusplus > 201402L
|
||||||
|
#pragma clang diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <com/sun/star/ucb/XCommandEnvironment.hpp>
|
#include <com/sun/star/ucb/XCommandEnvironment.hpp>
|
||||||
|
@@ -16,10 +16,15 @@
|
|||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wdeprecated"
|
#pragma GCC diagnostic ignored "-Wdeprecated"
|
||||||
#pragma GCC diagnostic ignored "-Wunused-but-set-parameter"
|
#pragma GCC diagnostic ignored "-Wunused-but-set-parameter"
|
||||||
|
#elif defined __clang__ && __cplusplus > 201402L
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wdynamic-exception-spec"
|
||||||
#endif
|
#endif
|
||||||
#include <libcmis/libcmis.hxx>
|
#include <libcmis/libcmis.hxx>
|
||||||
#if defined __GNUC__ && __GNUC__ >= 7
|
#if defined __GNUC__ && __GNUC__ >= 7
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
|
#elif defined __clang__ && __cplusplus > 201402L
|
||||||
|
#pragma clang diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <com/sun/star/ucb/XCommandEnvironment.hpp>
|
#include <com/sun/star/ucb/XCommandEnvironment.hpp>
|
||||||
|
@@ -28,10 +28,15 @@
|
|||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wdeprecated"
|
#pragma GCC diagnostic ignored "-Wdeprecated"
|
||||||
#pragma GCC diagnostic ignored "-Wunused-but-set-parameter"
|
#pragma GCC diagnostic ignored "-Wunused-but-set-parameter"
|
||||||
|
#elif defined __clang__ && __cplusplus > 201402L
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wdynamic-exception-spec"
|
||||||
#endif
|
#endif
|
||||||
#include <libcmis/libcmis.hxx>
|
#include <libcmis/libcmis.hxx>
|
||||||
#if defined __GNUC__ && __GNUC__ >= 7
|
#if defined __GNUC__ && __GNUC__ >= 7
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
|
#elif defined __clang__ && __cplusplus > 201402L
|
||||||
|
#pragma clang diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <list>
|
#include <list>
|
||||||
|
@@ -11,10 +11,15 @@
|
|||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wdeprecated"
|
#pragma GCC diagnostic ignored "-Wdeprecated"
|
||||||
#pragma GCC diagnostic ignored "-Wunused-but-set-parameter"
|
#pragma GCC diagnostic ignored "-Wunused-but-set-parameter"
|
||||||
|
#elif defined __clang__ && __cplusplus > 201402L
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wdynamic-exception-spec"
|
||||||
#endif
|
#endif
|
||||||
#include <libcmis/libcmis.hxx>
|
#include <libcmis/libcmis.hxx>
|
||||||
#if defined __GNUC__ && __GNUC__ >= 7
|
#if defined __GNUC__ && __GNUC__ >= 7
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
|
#elif defined __clang__ && __cplusplus > 201402L
|
||||||
|
#pragma clang diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <config_oauth2.h>
|
#include <config_oauth2.h>
|
||||||
|
Reference in New Issue
Block a user