Skip to content

Commit

Permalink
[lib] hanlde nodiscard function
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoHsiao1 committed Jan 13, 2024
1 parent 96f05b3 commit 99a88b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyexiv2/lib/exiv2api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ class Image{
std::string data_str = py::bytes(data.attr("encode")(encoding));
(*img)->setXmpPacket(data_str);
(*img)->writeMetadata();
(*img)->writeXmpFromPacket(); // Refresh the parsed XMP data in memory
(void)(*img)->writeXmpFromPacket(); // Refresh the parsed XMP data in memory
check_error_log();
}

Expand Down

0 comments on commit 99a88b9

Please sign in to comment.