namitkewat opened a new pull request, #799: URL: https://github.com/apache/arrow-nanoarrow/pull/799
Hi there! I am trying integrate `nanoarrow` into my Zig project. While doing so, the build process failed with an "unreachable code" error. It seems Zig's strict toolchain for importing C headers flags a specific pattern in `src/nanoarrow/common/inline_array.h` as a fatal compile error. The problematic function appears to be `_ArrowArrayAppendEmptyInternal` , which contains a `for` loop where the inner `switch` statement causes code to be unreachable, which prevents the headers from being imported successfully in Zig. This PR refactors that loop to remove the explicit `continue` statements and allow control to flow naturally, which resolves the compiler error in Zig without changing the function's logic. I welcome any feedback or suggestions on this approach. Thank you to the maintainers and the community for your time and review. -- 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]
