You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "WillAyd (via GitHub)" <gi...@apache.org> on 2025/06/10 15:54:27 UTC
[I] Meson "may be used uninitialized" warning [arrow-nanoarrow]
WillAyd opened a new issue, #775:
URL: https://github.com/apache/arrow-nanoarrow/issues/775
This shows up in both the Ubuntu and Windows CI jobs:
```
In file included from ..\src/nanoarrow/common/inline_array.h:27,
from ..\src/nanoarrow/nanoarrow.h:1271,
from ..\src/nanoarrow/hpp/unique.hpp:23,
from ..\src/nanoarrow/hpp/array_stream.hpp:23,
from ..\src/nanoarrow/nanoarrow.hpp:25,
from ../src/nanoarrow/common/array_test.cc:42:
In function 'void _ArrowBitmapPackInt8(const int8_t*, uint8_t*)',
inlined from 'void ArrowBitmapAppendInt8Unsafe(ArrowBitmap*, const int8_t*, int64_t)' at ..\src/nanoarrow/common/inline_buffer.h:650:25,
inlined from 'virtual void ArrayTest_ArrayTestBuildByBuffer_Test::TestBody()' at ../src/nanoarrow/common/array_test.cc:231:30:
..\src/nanoarrow/common/inline_buffer.h:357:28: warning: 'validity_array' may be used uninitialized [-Wmaybe-uninitialized]
357 | *out = (uint8_t)(values[0] | ((values[1] + 0x1) & 0x2) | ((values[2] + 0x3) & 0x4) |
| ~~~~~~~~^
../src/nanoarrow/common/array_test.cc: In member function 'virtual void ArrayTest_ArrayTestBuildByBuffer_Test::TestBody()':
../src/nanoarrow/common/array_test.cc:222:10: note: 'validity_array' declared here
222 | int8_t validity_array[] = {1, 0, 1, 0, 1, 0, 1};
| ^~~~~~~~~~~~~~
In function 'void _ArrowBitmapPackInt8(const int8_t*, uint8_t*)',
inlined from 'void ArrowBitmapAppendInt8Unsafe(ArrowBitmap*, const int8_t*, int64_t)' at ..\src/nanoarrow/common/inline_buffer.h:650:25,
inlined from 'virtual void ArrayTest_ArrayTestBuildByBuffer_Test::TestBody()' at ../src/nanoarrow/common/array_test.cc:231:30:
..\src/nanoarrow/common/inline_buffer.h:357:28: warning: 'validity_array' may be used uninitialized [-Wmaybe-uninitialized]
357 | *out = (uint8_t)(values[0] | ((values[1] + 0x1) & 0x2) | ((values[2] + 0x3) & 0x4) |
| ~~~~~~~~^
../src/nanoarrow/common/array_test.cc: In member function 'virtual void ArrayTest_ArrayTestBuildByBuffer_Test::TestBody()':
../src/nanoarrow/common/array_test.cc:222:10: note: 'validity_array' declared here
222 | int8_t validity_array[] = {1, 0, 1, 0, 1, 0, 1};
| ^~~~~~~~~~~~~~
In function 'void _ArrowBitmapPackInt8(const int8_t*, uint8_t*)',
inlined from 'void ArrowBitmapAppendInt8Unsafe(ArrowBitmap*, const int8_t*, int64_t)' at ..\src/nanoarrow/common/inline_buffer.h:650:25,
inlined from 'virtual void ArrayTest_ArrayTestBuildByBuffer_Test::TestBody()' at ../src/nanoarrow/common/array_test.cc:231:30:
..\src/nanoarrow/common/inline_buffer.h:357:28: warning: 'validity_array' may be used uninitialized [-Wmaybe-uninitialized]
357 | *out = (uint8_t)(values[0] | ((values[1] + 0x1) & 0x2) | ((values[2] + 0x3) & 0x4) |
| ~~~~~~~~^
../src/nanoarrow/common/array_test.cc: In member function 'virtual void ArrayTest_ArrayTestBuildByBuffer_Test::TestBody()':
../src/nanoarrow/common/array_test.cc:222:10: note: 'validity_array' declared here
222 | int8_t validity_array[] = {1, 0, 1, 0, 1, 0, 1};
| ^~~~~~~~~~~~~~
In function 'void _ArrowBitmapPackInt8(const int8_t*, uint8_t*)',
inlined from 'void ArrowBitmapAppendInt8Unsafe(ArrowBitmap*, const int8_t*, int64_t)' at ..\src/nanoarrow/common/inline_buffer.h:650:25,
inlined from 'virtual void ArrayTest_ArrayTestBuildByBuffer_Test::TestBody()' at ../src/nanoarrow/common/array_test.cc:231:30:
..\src/nanoarrow/common/inline_buffer.h:357:28: warning: 'validity_array' may be used uninitialized [-Wmaybe-uninitialized]
357 | *out = (uint8_t)(values[0] | ((values[1] + 0x1) & 0x2) | ((values[2] + 0x3) & 0x4) |
| ~~~~~~~~^
../src/nanoarrow/common/array_test.cc: In member function 'virtual void ArrayTest_ArrayTestBuildByBuffer_Test::TestBody()':
../src/nanoarrow/common/array_test.cc:222:10: note: 'validity_array' declared here
222 | int8_t validity_array[] = {1, 0, 1, 0, 1, 0, 1};
| ^~~~~~~~~~~~~~
In function 'void _ArrowBitmapPackInt8(const int8_t*, uint8_t*)',
inlined from 'void ArrowBitmapAppendInt8Unsafe(ArrowBitmap*, const int8_t*, int64_t)' at ..\src/nanoarrow/common/inline_buffer.h:650:25,
inlined from 'virtual void ArrayTest_ArrayTestBuildByBuffer_Test::TestBody()' at ../src/nanoarrow/common/array_test.cc:231:30:
..\src/nanoarrow/common/inline_buffer.h:357:28: warning: 'validity_array' may be used uninitialized [-Wmaybe-uninitialized]
357 | *out = (uint8_t)(values[0] | ((values[1] + 0x1) & 0x2) | ((values[2] + 0x3) & 0x4) |
| ~~~~~~~~^
../src/nanoarrow/common/array_test.cc: In member function 'virtual void ArrayTest_ArrayTestBuildByBuffer_Test::TestBody()':
../src/nanoarrow/common/array_test.cc:222:10: note: 'validity_array' declared here
222 | int8_t validity_array[] = {1, 0, 1, 0, 1, 0, 1};
| ^~~~~~~~~~~~~~
In function 'void _ArrowBitmapPackInt8(const int8_t*, uint8_t*)',
inlined from 'void ArrowBitmapAppendInt8Unsafe(ArrowBitmap*, const int8_t*, int64_t)' at ..\src/nanoarrow/common/inline_buffer.h:650:25,
inlined from 'virtual void ArrayTest_ArrayTestBuildByBuffer_Test::TestBody()' at ../src/nanoarrow/common/array_test.cc:231:30:
..\src/nanoarrow/common/inline_buffer.h:357:28: warning: 'validity_array' may be used uninitialized [-Wmaybe-uninitialized]
357 | *out = (uint8_t)(values[0] | ((values[1] + 0x1) & 0x2) | ((values[2] + 0x3) & 0x4) |
| ~~~~~~~~^
../src/nanoarrow/common/array_test.cc: In member function 'virtual void ArrayTest_ArrayTestBuildByBuffer_Test::TestBody()':
../src/nanoarrow/common/array_test.cc:222:10: note: 'validity_array' declared here
222 | int8_t validity_array[] = {1, 0, 1, 0, 1, 0, 1};
| ^~~~~~~~~~~~~~
In function 'void _ArrowBitmapPackInt8(const int8_t*, uint8_t*)',
inlined from 'void ArrowBitmapAppendInt8Unsafe(ArrowBitmap*, const int8_t*, int64_t)' at ..\src/nanoarrow/common/inline_buffer.h:650:25,
inlined from 'virtual void ArrayTest_ArrayTestBuildByBuffer_Test::TestBody()' at ../src/nanoarrow/common/array_test.cc:231:30:
..\src/nanoarrow/common/inline_buffer.h:357:28: warning: 'validity_array' may be used uninitialized [-Wmaybe-uninitialized]
357 | *out = (uint8_t)(values[0] | ((values[1] + 0x1) & 0x2) | ((values[2] + 0x3) & 0x4) |
| ~~~~~~~~^
../src/nanoarrow/common/array_test.cc: In member function 'virtual void ArrayTest_ArrayTestBuildByBuffer_Test::TestBody()':
../src/nanoarrow/common/array_test.cc:222:10: note: 'validity_array' declared here
222 | int8_t validity_array[] = {1, 0, 1, 0, 1, 0, 1};
| ^~~~~~~~~~~~~~
In function 'void _ArrowBitmapPackInt8(const int8_t*, uint8_t*)',
inlined from 'void ArrowBitmapAppendInt8Unsafe(ArrowBitmap*, const int8_t*, int64_t)' at ..\src/nanoarrow/common/inline_buffer.h:650:25,
inlined from 'virtual void ArrayTest_ArrayTestBuildByBuffer_Test::TestBody()' at ../src/nanoarrow/common/array_test.cc:231:30:
..\src/nanoarrow/common/inline_buffer.h:357:28: warning: 'validity_array' may be used uninitialized [-Wmaybe-uninitialized]
357 | *out = (uint8_t)(values[0] | ((values[1] + 0x1) & 0x2) | ((values[2] + 0x3) & 0x4) |
| ~~~~~~~~^
../src/nanoarrow/common/array_test.cc: In member function 'virtual void ArrayTest_ArrayTestBuildByBuffer_Test::TestBody()':
../src/nanoarrow/common/array_test.cc:222:10: note: 'validity_array' declared here
222 | int8_t validity_array[] = {1, 0, 1, 0, 1, 0, 1};
| ^~~~~~~~~~~~~~
```
--
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: issues-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Meson "may be used uninitialized" warning [arrow-nanoarrow]
Posted by "WillAyd (via GitHub)" <gi...@apache.org>.
WillAyd commented on issue #775:
URL: https://github.com/apache/arrow-nanoarrow/issues/775#issuecomment-2968025122
This was solved in https://github.com/apache/arrow-nanoarrow/pull/781
--
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-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Meson "may be used uninitialized" warning [arrow-nanoarrow]
Posted by "WillAyd (via GitHub)" <gi...@apache.org>.
WillAyd closed issue #775: Meson "may be used uninitialized" warning
URL: https://github.com/apache/arrow-nanoarrow/issues/775
--
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: issues-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org