Skip to content

Commit

Permalink
#pragma GCC diagnostic push
Browse files Browse the repository at this point in the history
#pragma GCC diagnostic ignored "-Wdeprecated"
  • Loading branch information
jchen351 committed Jul 22, 2024
1 parent 6177120 commit 254c8c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion onnxruntime/core/session/inference_session.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2751,7 +2751,9 @@ common::Status InferenceSession::RunAsync(const RunOptions* run_options,
std::function<void()> run_fn = [=]() {
#pragma GCC diagnostic pop
#else
std::function<void()> run_fn = [=]() {
#ifdef __cplusplus >= 202002L
std::function<void()> run_fn = [=, this]() {
#endif
#endif
Status status = Status::OK();
ORT_TRY {
Expand Down

0 comments on commit 254c8c1

Please sign in to comment.