diff --git a/tests/src/integration/integration.cpp b/tests/src/integration/integration.cpp index 157be38ac..120637e79 100644 --- a/tests/src/integration/integration.cpp +++ b/tests/src/integration/integration.cpp @@ -148,6 +148,10 @@ void Integration::SetUp() { data_center_nodes.push_back(number_dc2_nodes_); if (is_ccm_requested_) { +#if defined(__GNUC__) || defined(__INTEL_COMPILER) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wcatch-value" +#endif try { // Create and start the CCM cluster (if not already created) ccm_ = new CCM::Bridge( @@ -190,6 +194,9 @@ void Integration::SetUp() { // Issue creating the CCM bridge instance (force failure) FAIL() << be.what(); } +#if defined(__GNUC__) || defined(__INTEL_COMPILER) +#pragma GCC diagnostic pop +#endif } } diff --git a/tests/src/integration/objects/cluster.hpp b/tests/src/integration/objects/cluster.hpp index a03f1af93..468b3a628 100644 --- a/tests/src/integration/objects/cluster.hpp +++ b/tests/src/integration/objects/cluster.hpp @@ -206,21 +206,28 @@ class Cluster : public Object { return *this; } - /** - * Enable/Disable the use of hostname resolution - * - * This is useful for authentication (Kerberos) or encryption (SSL) - * services that require a valid hostname for verification. - * - * @param enable True if hostname resolution should be enabled; false - * otherwise (default: true) - * @return Cluster object - */ +/** + * Enable/Disable the use of hostname resolution + * + * This is useful for authentication (Kerberos) or encryption (SSL) + * services that require a valid hostname for verification. + * + * @param enable True if hostname resolution should be enabled; false + * otherwise (default: true) + * @return Cluster object + */ +#if defined(__GNUC__) || defined(__INTEL_COMPILER) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif Cluster& with_hostname_resolution(bool enable = true) { EXPECT_EQ(CASS_OK, cass_cluster_set_use_hostname_resolution( get(), (enable == true ? cass_true : cass_false))); return *this; } +#if defined(__GNUC__) || defined(__INTEL_COMPILER) +#pragma GCC diagnostic pop +#endif /** * Sets the number of I/O threads. This is the number of threads that will diff --git a/tests/src/integration/objects/retry_policy.cpp b/tests/src/integration/objects/retry_policy.cpp index cde330172..f47a7dcf9 100644 --- a/tests/src/integration/objects/retry_policy.cpp +++ b/tests/src/integration/objects/retry_policy.cpp @@ -18,5 +18,12 @@ using namespace test::driver; +#if defined(__GNUC__) || defined(__INTEL_COMPILER) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif DowngradingConsistencyRetryPolicy::DowngradingConsistencyRetryPolicy() : RetryPolicy(cass_retry_policy_downgrading_consistency_new()) {} +#if defined(__GNUC__) || defined(__INTEL_COMPILER) +#pragma GCC diagnostic pop +#endif