diff --git a/pyexiv2/lib/exiv2api.cpp b/pyexiv2/lib/exiv2api.cpp index deab0e4..98c7b6b 100644 --- a/pyexiv2/lib/exiv2api.cpp +++ b/pyexiv2/lib/exiv2api.cpp @@ -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(); }