pitrou commented on a change in pull request #10632: URL: https://github.com/apache/arrow/pull/10632#discussion_r662172979
########## File path: cpp/src/arrow/util/async_generator.h ########## @@ -1338,11 +1342,34 @@ class BackgroundGenerator { return next; } +#if (defined(__GNUC__) || defined(__clang__)) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wclass-memaccess" +#endif + + void SetWorkerThreadId(const std::thread::id tid) { Review comment: > Is it because the worker thread id might be changing (from set to unset) when the assert in cleanup happens? Exactly, yes. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org