Skip to content

[C++] unused-variable warnings #39387

@huberylee

Description

@huberylee

Describe the bug, including details regarding any error messages, version, and platform.

In file included from /workspace/arrow/cpp/src/arrow/array/array_base.h:26:
/workspace/arrow/cpp/src/arrow/array/data.h:452:19: warning: unused variable 'buffer_length' [-Wunused-variable]
    const int64_t buffer_length = buffers[i].size / static_cast<int64_t>(sizeof(T));
                  ^
/workspace/arrow/cpp/src/arrow/array/data.h:467:19: warning: unused variable 'buffer_length' [-Wunused-variable]
    const int64_t buffer_length = buffers[i].size / static_cast<int64_t>(sizeof(T));
                  ^
2 warnings generated.

Component(s)

C++

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions