You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by gi...@apache.org on 2024/01/21 01:31:26 UTC

(arrow-nanoarrow) branch main updated: Update dist/ for commit 0a7edce59892f8307f8e16644d44aa86acd8b980

This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-nanoarrow.git


The following commit(s) were added to refs/heads/main by this push:
     new e0a5d9d9 Update dist/ for commit 0a7edce59892f8307f8e16644d44aa86acd8b980
e0a5d9d9 is described below

commit e0a5d9d9c4188dd1fe81ead7fa9737f6322098d9
Author: GitHub Actions <ac...@github.com>
AuthorDate: Sun Jan 21 01:31:21 2024 +0000

    Update dist/ for commit 0a7edce59892f8307f8e16644d44aa86acd8b980
---
 dist/nanoarrow.c | 9 +++++++++
 dist/nanoarrow.h | 4 ++++
 2 files changed, 13 insertions(+)

diff --git a/dist/nanoarrow.c b/dist/nanoarrow.c
index 18307c06..dc7ea6a1 100644
--- a/dist/nanoarrow.c
+++ b/dist/nanoarrow.c
@@ -192,11 +192,15 @@ void ArrowFree(void* ptr) { free(ptr); }
 static uint8_t* ArrowBufferAllocatorMallocReallocate(
     struct ArrowBufferAllocator* allocator, uint8_t* ptr, int64_t old_size,
     int64_t new_size) {
+  NANOARROW_UNUSED(allocator);
+  NANOARROW_UNUSED(old_size);
   return (uint8_t*)ArrowRealloc(ptr, new_size);
 }
 
 static void ArrowBufferAllocatorMallocFree(struct ArrowBufferAllocator* allocator,
                                            uint8_t* ptr, int64_t size) {
+  NANOARROW_UNUSED(allocator);
+  NANOARROW_UNUSED(size);
   ArrowFree(ptr);
 }
 
@@ -210,6 +214,10 @@ struct ArrowBufferAllocator ArrowBufferAllocatorDefault(void) {
 static uint8_t* ArrowBufferAllocatorNeverReallocate(
     struct ArrowBufferAllocator* allocator, uint8_t* ptr, int64_t old_size,
     int64_t new_size) {
+  NANOARROW_UNUSED(allocator);
+  NANOARROW_UNUSED(ptr);
+  NANOARROW_UNUSED(old_size);
+  NANOARROW_UNUSED(new_size);
   return NULL;
 }
 
@@ -3006,6 +3014,7 @@ static int ArrowBasicArrayStreamGetNext(struct ArrowArrayStream* array_stream,
 
 static const char* ArrowBasicArrayStreamGetLastError(
     struct ArrowArrayStream* array_stream) {
+  NANOARROW_UNUSED(array_stream);
   return NULL;
 }
 
diff --git a/dist/nanoarrow.h b/dist/nanoarrow.h
index a669eef2..331da298 100644
--- a/dist/nanoarrow.h
+++ b/dist/nanoarrow.h
@@ -227,6 +227,8 @@ struct ArrowArrayStream {
 #define NANOARROW_CHECK_PRINTF_ATTRIBUTE
 #endif
 
+#define NANOARROW_UNUSED(x) (void)(x)
+
 /// \brief Return code for success.
 /// \ingroup nanoarrow-errors
 #define NANOARROW_OK 0
@@ -2761,11 +2763,13 @@ static inline struct ArrowBuffer* ArrowArrayBuffer(struct ArrowArray* array, int
 // is made.
 static inline int8_t _ArrowArrayUnionChildIndex(struct ArrowArray* array,
                                                 int8_t type_id) {
+  NANOARROW_UNUSED(array);
   return type_id;
 }
 
 static inline int8_t _ArrowArrayUnionTypeId(struct ArrowArray* array,
                                             int8_t child_index) {
+  NANOARROW_UNUSED(array);
   return child_index;
 }