Skip to content

Commit 7319176

Browse files
committed
Initial fix for deprecated warnings
1 parent 734bd6c commit 7319176

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/src/integration/objects/cluster.hpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,18 @@ class Cluster : public Object<CassCluster, cass_cluster_free> {
216216
* otherwise (default: true)
217217
* @return Cluster object
218218
*/
219+
#if defined(__GNUC__) || defined(__INTEL_COMPILER)
220+
# pragma GCC diagnostic push
221+
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
222+
#endif
219223
Cluster& with_hostname_resolution(bool enable = true) {
220224
EXPECT_EQ(CASS_OK, cass_cluster_set_use_hostname_resolution(
221225
get(), (enable == true ? cass_true : cass_false)));
222226
return *this;
223227
}
228+
#if defined(__GNUC__) || defined(__INTEL_COMPILER)
229+
# pragma GCC diagnostic pop
230+
#endif
224231

225232
/**
226233
* Sets the number of I/O threads. This is the number of threads that will

0 commit comments

Comments
 (0)