kou commented on issue #37107:
URL: https://github.com/apache/arrow/issues/37107#issuecomment-1674016192

   Does this work?
   
   ```diff
   diff --git a/cpp/src/arrow/util/ree_util.h b/cpp/src/arrow/util/ree_util.h
   index 5a240240b..a3d3d16c0 100644
   --- a/cpp/src/arrow/util/ree_util.h
   +++ b/cpp/src/arrow/util/ree_util.h
   @@ -104,6 +104,11 @@ int64_t FindPhysicalLength(const RunEndCType* run_ends, 
int64_t run_ends_size,
                               int64_t length, int64_t offset) {
      auto [_, physical_length] =
          FindPhysicalRange<RunEndCType>(run_ends, run_ends_size, length, 
offset);
   +  // GH-37107: This is a workaround for GCC 7. GCC 7 doesn't ignore
   +  // variables in structured binding automatically from unused
   +  // variables when one of these variables are used.
   +  // See also: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81767
   +  ARROW_UNUSED(_);
      return physical_length;
    }
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to