Skip to content

Commit

Permalink
Add [[maybe_unused]] to avoid warning
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAce committed Jun 11, 2021
1 parent 5e970e8 commit 8f3ba74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/h5pp/details/h5ppHdf5.h
Original file line number Diff line number Diff line change
Expand Up @@ -1830,7 +1830,7 @@ namespace h5pp::hdf5 {
herr_t retval = 0;

// Get the memory address to the data buffer
auto dataPtr = h5pp::util::getVoidPointer<const void *>(data);
[[maybe_unused]] auto dataPtr = h5pp::util::getVoidPointer<const void *>(data);

if constexpr(h5pp::type::sfinae::is_text_v<DataType> or h5pp::type::sfinae::has_text_v<DataType>) {
auto vec = getCharPtrVector(data);
Expand Down

0 comments on commit 8f3ba74

Please sign in to comment.