Skip to content

Missing return in typed_array::data(uint64_array_arg_t) const? #213

@alekseyt

Description

@alekseyt

It's this line: https://github.com/danielaparker/jsoncons/blob/master/include/jsoncons/staj_reader.hpp#L870

Doesn't it miss a return?

I'm not aware of any issues related to this, but i spotted this warning when cross-compiling with clang for OSX:

In file included from .../include/jsoncons/ser_traits.hpp:20:
.../include/jsoncons/staj_reader.hpp:871:5: warning: 
      control may reach end of non-void function [-Wreturn-type]
    }
    ^
.../include/jsoncons/staj_reader.hpp:1022:44: note: in
      instantiation of member function
      'jsoncons::typed_array<std::__1::allocator<char> >::data' requested here
                data_.uint64_data_ = other.data(uint64_array_arg).data();
                                           ^

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions