Skip to content

Commit

Permalink
Special case where c++20 is defined by was undefined again
Browse files Browse the repository at this point in the history
  • Loading branch information
jchen351 committed Jul 22, 2024
1 parent 6c105be commit f356538
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions onnxruntime/core/session/inference_session.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2748,6 +2748,12 @@ common::Status InferenceSession::RunAsync(const RunOptions* run_options,
#if __cplusplus >= 202002L

Check warning on line 2748 in onnxruntime/core/session/inference_session.cc

View workflow job for this annotation

GitHub Actions / Lint C++

[cpplint] reported by reviewdog 🐶 Lines should be <= 120 characters long [whitespace/line_length] [2] Raw Output: onnxruntime/core/session/inference_session.cc:2748: Lines should be <= 120 characters long [whitespace/line_length] [2]
std::function<void()> run_fn = [=, this]() {
#else
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated"
std::function<void()> run_fn = [=]() {
#pragma GCC diagnostic pop
#endif
std::function<void()> run_fn = [=]() {
#endif
Status status = Status::OK();
Expand Down

0 comments on commit f356538

Please sign in to comment.