Skip to content

[Fix warning] I found some warning when build code fix them? #118

@MisterRaindrop

Description

@MisterRaindrop

hi @wgtmac
I’ve noticed some compilation warnings. I understand that it’s normal to have warnings during the ongoing development of the code. However, they’re quite annoying to look at. If they haven’t been fixed, I can take care of them right away.
like it:

[  1%] Built target nanoarrow
[  1%] Building CXX object src/iceberg/CMakeFiles/iceberg_shared.dir/catalog/in_memory_catalog.cc.o
[  1%] Building CXX object src/iceberg/CMakeFiles/iceberg_shared.dir/demo.cc.o
[  2%] Building CXX object src/iceberg/CMakeFiles/iceberg_shared.dir/expression/expression.cc.o
[  2%] Building CXX object src/iceberg/CMakeFiles/iceberg_shared.dir/file_reader.cc.o
[  2%] Building CXX object src/iceberg/CMakeFiles/iceberg_shared.dir/json_internal.cc.o
/code/src/iceberg/json_internal.cc: In function 'nlohmann::json_abi_v3_11_3::json iceberg::ToJson(const Type&)':
/code/src/iceberg/json_internal.cc:480:1: warning: control reaches end of non-void function [-Wreturn-type]
  480 | }
      | ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions