You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2020/05/17 14:17:13 UTC

[GitHub] [arrow] hurricane1026 commented on a change in pull request #7202: ARROW-8825: [C++] Fix compilation for Wunused-paraemter flag

hurricane1026 commented on a change in pull request #7202:
URL: https://github.com/apache/arrow/pull/7202#discussion_r426266743



##########
File path: cpp/src/arrow/array.h
##########
@@ -798,7 +798,12 @@ class ARROW_EXPORT FixedSizeListArray : public Array {
     i += data_->offset;
     return static_cast<int32_t>(list_size_ * i);
   }
+#ifdef _MSC_VER
   int32_t value_length(int64_t i = 0) const { return list_size_; }
+#else
+  int32_t value_length(__attribute__((unused)) int64_t i = 0) const { return list_size_; }

Review comment:
       I was not very clear about arrow library, and I check your suggestion right now, and found that:
   #define ARROW_ARG_UNUSED(x) 
   then... I did not think it will works well in clang/g++, otherwise change the macro implementation to my code?




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org