Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-12475

[C++] Build warning from thread_pool_benchmark.cc

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 4.0.0
    • C++

    Description

      Clang warning from https://github.com/apache/arrow/blob/master/cpp/src/arrow/util/thread_pool_benchmark.cc#L113, as the return value of type 'Result' is not used.
      Wrap it with ABORT_NOT_OK() fixes the issue.

      [43/236] Building CXX object src/arrow/util/CMakeFiles/arrow-thread-pool-benchmark.dir/thread_pool_benchmark.cc.o
      ../src/arrow/util/thread_pool_benchmark.cc:113:5: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result]
          SerialExecutor::RunInSerialExecutor<arrow::detail::Empty>(
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      

      Attachments

        Issue Links

          Activity

            People

              yibocai#1 yibocai#1
              yibocai#1 yibocai#1
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m