[ 
https://issues.apache.org/jira/browse/ARROW-11337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17269511#comment-17269511
 ] 

Antoine Pitrou commented on ARROW-11337:
----------------------------------------

The function code is the following, which seems weird (is it a mistake?):
{code:c++}
    auto fut2 = fut.Then([innerFut, &was_cb_run](int) {
      return innerFut;
      was_cb_run = true;
    });
{code}

> [C++] Compilation error with ThreadSanitizer
> --------------------------------------------
>
>                 Key: ARROW-11337
>                 URL: https://issues.apache.org/jira/browse/ARROW-11337
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++
>            Reporter: Antoine Pitrou
>            Priority: Major
>
> With g++ 9.3.0 and {{ARROW_USE_TSAN=ON}}, I get the following compilation 
> error:
> {code:java}
> ../src/arrow/util/future_test.cc: In lambda function:
> ../src/arrow/util/future_test.cc:548:5: error: control reaches end of 
> non-void function [-Werror=return-type]
>   548 |     });
>       |     ^
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to