diff --git a/mindspore/ccsrc/minddata/dataset/callback/callback_manager.h b/mindspore/ccsrc/minddata/dataset/callback/callback_manager.h
index 9fadb7bf1c10df0cc0a39617b7269b5e598eeed8..0392a0d2cf3b7bcabcd574ca8c463a6bd564f75d 100644
--- a/mindspore/ccsrc/minddata/dataset/callback/callback_manager.h
+++ b/mindspore/ccsrc/minddata/dataset/callback/callback_manager.h
@@ -35,6 +35,8 @@ class CallbackManager {
   /// \brief CallbackManager default constructor. Init needs to be called before using the created instance.
   CallbackManager() : enabled_(false) {}
 
+  ~CallbackManager() = default;
+
   /// \brief
   /// \param [in] callbacks list of callbacks to perform
   void AddCallbacks(std::vector<std::shared_ptr<DSCallback>> callbacks);
diff --git a/mindspore/ccsrc/minddata/dataset/callback/callback_param.h b/mindspore/ccsrc/minddata/dataset/callback/callback_param.h
index 1dfe492002444a6cb5f0326e8a30eee39da8dfc9..70f4656909bb6a77ccb7f6b5eb39d0483ae82b18 100644
--- a/mindspore/ccsrc/minddata/dataset/callback/callback_param.h
+++ b/mindspore/ccsrc/minddata/dataset/callback/callback_param.h
@@ -29,6 +29,8 @@ class CallbackParam {
   CallbackParam(int64_t epoch_num, int64_t cur_epoch_step, int64_t total_step_num)
       : cur_epoch_num_(epoch_num), cur_epoch_step_num_(cur_epoch_step), cur_step_num_(total_step_num) {}
 
+  ~CallbackParam() = default;
+
   // these are constant public fields for easy access and consistency with python cb_param
   // the names and orders are consistent with batchInfo
   const int64_t cur_epoch_num_;       // current epoch
diff --git a/mindspore/ccsrc/minddata/dataset/callback/py_ds_callback.h b/mindspore/ccsrc/minddata/dataset/callback/py_ds_callback.h
index 644930ddf170c41dee62f8cfbafcc7e50ea00089..dcc57415014812de7313c1db500ce1fac1cf5f14 100644
--- a/mindspore/ccsrc/minddata/dataset/callback/py_ds_callback.h
+++ b/mindspore/ccsrc/minddata/dataset/callback/py_ds_callback.h
@@ -42,6 +42,8 @@ class PyDSCallback : public DSCallback {
         epoch_end_needed_(false),
         step_end_needed_(false) {}
 
+  ~PyDSCallback() = default;
+
   void setBegin(py::function f);
   void setEnd(py::function f);
   void setEpochBegin(py::function f);
diff --git a/mindspore/ccsrc/minddata/dataset/engine/cache/cache_client.h b/mindspore/ccsrc/minddata/dataset/engine/cache/cache_client.h
index 99b2209366d5d528a67d5c0164af30e45bec1b0f..9461dcbd533780f55bcdb880268fa490fde92b83 100644
--- a/mindspore/ccsrc/minddata/dataset/engine/cache/cache_client.h
+++ b/mindspore/ccsrc/minddata/dataset/engine/cache/cache_client.h
@@ -52,6 +52,8 @@ class CacheClient {
       prefetch_size_ = 20;  // rows_per_buf is too small (1 by default).
     }
 
+    ~Builder() = default;
+
     /// Setter function to set the session id
     /// \param session_id
     /// \return Builder object itself.
diff --git a/mindspore/ccsrc/minddata/dataset/engine/cache/cache_server.h b/mindspore/ccsrc/minddata/dataset/engine/cache/cache_server.h
index 1ec5414d0ca9df37f3832aa1f646f2e646f653a1..1b6a16f1c77888d481fbe1aa1d67a0f3f512944d 100644
--- a/mindspore/ccsrc/minddata/dataset/engine/cache/cache_server.h
+++ b/mindspore/ccsrc/minddata/dataset/engine/cache/cache_server.h
@@ -49,6 +49,8 @@ class CacheServer : public Service {
    public:
     Builder() : top_("/tmp"), num_workers_(32), port_(50052), shared_memory_sz_in_gb_(4) {}
 
+    ~Builder() = default;
+
     /// \brief Getter functions
     const std::string &getTop() const { return top_; }
     int32_t getNumWorkers() const { return num_workers_; }
diff --git a/mindspore/ccsrc/minddata/dataset/engine/gnn/graph_data_server.h b/mindspore/ccsrc/minddata/dataset/engine/gnn/graph_data_server.h
index ee37661d711cf6a9b77a8a047430703b48d2bea7..cbc43654aa37a91ee4204a82266246a0a6c235e0 100644
--- a/mindspore/ccsrc/minddata/dataset/engine/gnn/graph_data_server.h
+++ b/mindspore/ccsrc/minddata/dataset/engine/gnn/graph_data_server.h
@@ -164,6 +164,8 @@ class GraphDataGrpcServer : public GrpcAsyncServer {
   GraphDataGrpcServer(const std::string &host, int32_t port, GraphDataServiceImpl *service_impl)
       : GrpcAsyncServer(host, port), service_impl_(service_impl) {}
 
+  ~GraphDataGrpcServer() = default;
+
   Status RegisterService(grpc::ServerBuilder *builder) {
     builder->RegisterService(&svc_);
     return Status::OK();