diff options
author | Hubert Figuière <hub@figuiere.net> | 2022-02-14 10:38:48 -0500 |
---|---|---|
committer | Hubert Figuière <hub@figuiere.net> | 2022-02-14 10:38:48 -0500 |
commit | 9ab742ccca92a6c65133cd28aee4764ba7fcf12a (patch) | |
tree | a00648bf8872e0be1aa3b821ac4a82994b29a820 /XMPFiles/source/FormatSupport/ReconcileIPTC.cpp | |
parent | 0ac0675dcd41cf44dfee36216e032bcc46cfd9f3 (diff) |
Fix several -Wclass-memaccess warnings
- XmpDate and BoxInfo have constructors
Diffstat (limited to 'XMPFiles/source/FormatSupport/ReconcileIPTC.cpp')
-rw-r--r-- | XMPFiles/source/FormatSupport/ReconcileIPTC.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/XMPFiles/source/FormatSupport/ReconcileIPTC.cpp b/XMPFiles/source/FormatSupport/ReconcileIPTC.cpp index bf797d5..5bead01 100644 --- a/XMPFiles/source/FormatSupport/ReconcileIPTC.cpp +++ b/XMPFiles/source/FormatSupport/ReconcileIPTC.cpp @@ -197,7 +197,8 @@ void PhotoDataUtils::ImportIPTC_Date ( XMP_Uns8 dateID, const IPTC_Manager & ipt size_t chPos, digits; XMP_DateTime xmpDate; - memset ( &xmpDate, 0, sizeof(xmpDate) ); + // (Exempi) unsafe. Constructor is already called + //memset ( &xmpDate, 0, sizeof(xmpDate) ); chPos = 0; for ( digits = 0; digits < 4; ++digits, ++chPos ) { |