paleolimbot commented on PR #406:
URL: https://github.com/apache/arrow-nanoarrow/pull/406#issuecomment-2011014335

   > I think it would be good to include something from both the C and C++ 
headers. So maybe also just a nanoarrow::UniqueArray tmp; declaration would 
suffice?
   
   That's a great point, and we should probably use it to do something to make 
extra sure it isn't optimized out. Maybe:
   
   ```cpp
   int main() {
     nanoarrow::UniqueSchema schema;
     NANOARROW_RETURN_NOT_OK(ArrowSchemaInitFromType(schema.get(), 
NANOARROW_TYPE_INT32));
     printf("Schema format for int32 is '%s'", schema->format);
     return EXIT_SUCCESS;
   }
   ```


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

Reply via email to