-
-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning from GCC's -Walloc-size-larger-than= in H5Location.cpp #5126
Comments
Hello! This seemed to be an issue with the C API that was used in the C++ code, and we're working on it. |
Thanks for your response and the suggestion to abandon the C++ interface. We considered using HighFive but eventually we decided that for our simple use case relying on yet another third party dependency is not worth it. Am I right that HighFive is not part of HDFGroup or is maintained by you / them? |
HighFive is not currently maintained by the HDF Group. The C++ wrappers will probably be removed from the HDF5 library in December or January. |
@derobins, thanks for your response. Personally, I find it handy to have a thin C++ wrapper that takes care of the RAII. However, I assume that there are reasons for deprecating the API. Since we cannot easily add dependencies to our project this means that we have to write these wrappers by ourselves, though. |
I'm sorry, @avitase, the C++ wrapper has not been maintained for quite a while now. While you write your own wrappers, you're welcome to use the C++ wrapper code in any way if it's helpful. |
Hi @avitase, I'm trying to make sure that the call to H5Lget_name_by_idx before |
Hi @bmribler, I include HDF5 as a dependency in my CMake super-build. Hence, this error occurs during the compilation of HDF5 itself before seeing my code. |
Thanks! |
@avitase I just want to let you know that the removal of the C++ wrapper has been removed from our plan for 2.0. We haven't decided on its long term support yet, but for the time being, it will continue to exist in HDF5 2.0. |
@bmribler, thanks for letting me know:) |
My
g++ (Ubuntu 13.2.0-23ubuntu4) 13.2.0
compiler warns me about a dangerous alloc inhdf5/c++/src/H5Location.cpp
Line 2001 in ec0d341
This is the warning I got:
The text was updated successfully, but these errors were encountered: