clean warning

This commit is contained in:
xupan 2023-02-10 15:20:48 +08:00
parent d55b6d4ed4
commit ab0e3653a9
5 changed files with 0 additions and 25 deletions

View File

@ -17,9 +17,6 @@
#ifndef MINDSPORE_CORE_MINDRT_INCLUDE_ACTOR_LOG_H_
#define MINDSPORE_CORE_MINDRT_INCLUDE_ACTOR_LOG_H_
#include <signal.h>
#include <iostream>
#include <sstream>
#include <string>

View File

@ -93,22 +93,8 @@ class Future : public FutureBase {
if (data->gotten) {
return data->t;
}
// try {
data->t = data->future.get();
data->gotten = true;
// } catch (std::future_error const &e) {
// ICTSBASE_LOG_STRING(ICTSBASE_LOG_COMMON_CODE, HLOG_LEVEL_ERROR, PID_MINDRT_LOG, "Future error: %s",
// "%s",
// e.what());
// } catch (std::exception const &e) {
// ICTSBASE_LOG_STRING(ICTSBASE_LOG_COMMON_CODE, HLOG_LEVEL_ERROR, PID_MINDRT_LOG, "Standard exception:
// %s",
// "%s", e.what());
// } catch (...) {
// ICTSBASE_LOG0(ICTSBASE_LOG_COMMON_CODE, HLOG_LEVEL_ERROR, PID_MINDRT_LOG, "Unknown exception.");
// }
return data->t;
}
@ -390,12 +376,9 @@ class Promise {
explicit Promise(const T &t) : future(t) {}
virtual ~Promise() {
// try {
if (future.data) {
future.Abandon();
}
// } catch (...) {
// }
}
void SetValue(const T &value) const { Set(value); }

View File

@ -18,7 +18,6 @@
#define MINDSPORE_CORE_MINDRT_INCLUDE_ASYNC_FUTURE_BASE_H
#include <future>
#include <iostream>
#include <utility>
#include <memory>
#include <list>
@ -30,7 +29,6 @@
namespace mindspore {
template <typename T>
class Future;
template <typename T>
class Promise;
class LessFuture {

View File

@ -17,9 +17,7 @@
#ifndef MINDSPORE_CORE_MINDRT_INCLUDE_ASYNC_OPTION_H
#define MINDSPORE_CORE_MINDRT_INCLUDE_ASYNC_OPTION_H
#include <type_traits>
#include <utility>
#include "actor/log.h"
namespace mindspore {

View File

@ -16,7 +16,6 @@
#include "async/uuid_generator.h"
#include <atomic>
#include <climits>
namespace mindspore {
namespace uuid_generator {