summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/InstrumentationI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/InstrumentationI.cpp')
-rw-r--r--cpp/src/Ice/InstrumentationI.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/cpp/src/Ice/InstrumentationI.cpp b/cpp/src/Ice/InstrumentationI.cpp
index c370348120c..e5a15432fd1 100644
--- a/cpp/src/Ice/InstrumentationI.cpp
+++ b/cpp/src/Ice/InstrumentationI.cpp
@@ -559,7 +559,25 @@ private:
const ConnectionInfoPtr& _connectionInfo;
const EndpointPtr& _endpoint;
+
+//
+// Clang 4.2 reports unused-private-field for the _requestId
+// field that is only used in the nested Attributes class.
+//
+#ifdef __clang__
+# pragma clang diagnostic push
+# pragma clang diagnostic ignored "-Wunused-private-field"
+#endif
+
const int _requestId;
+
+//
+// Restore diagnostic to previous state.
+//
+#ifdef __clang__
+# pragma clang diagnostic pop
+#endif
+
const int _size;
mutable string _id;
mutable EndpointInfoPtr _endpointInfo;