From 1aff75d33fea8afd070b724293dfe5205912abc5 Mon Sep 17 00:00:00 2001 From: Romain Thomas Date: Mon, 18 Jan 2021 08:11:42 +0100 Subject: [PATCH] Fix warning --- include/LIEF/PE/signature/x509.hpp | 2 +- src/PE/signature/Attribute.cpp | 1 + src/PE/utils.cpp | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/LIEF/PE/signature/x509.hpp b/include/LIEF/PE/signature/x509.hpp index f52ff0f..47dc551 100644 --- a/include/LIEF/PE/signature/x509.hpp +++ b/include/LIEF/PE/signature/x509.hpp @@ -192,6 +192,6 @@ class LIEF_API x509 : public Object { } } -ENABLE_BITMASK_OPERATORS(LIEF::PE::x509::VERIFICATION_FLAGS); +ENABLE_BITMASK_OPERATORS(LIEF::PE::x509::VERIFICATION_FLAGS) #endif diff --git a/src/PE/signature/Attribute.cpp b/src/PE/signature/Attribute.cpp index 275f0a3..9d29370 100644 --- a/src/PE/signature/Attribute.cpp +++ b/src/PE/signature/Attribute.cpp @@ -29,6 +29,7 @@ Attribute::Attribute(SIG_ATTRIBUTE_TYPES type) : {} Attribute::Attribute(const Attribute& other) : + Object{other}, type_{other.type_} {} diff --git a/src/PE/utils.cpp b/src/PE/utils.cpp index 402fd48..f1e5c8b 100644 --- a/src/PE/utils.cpp +++ b/src/PE/utils.cpp @@ -270,6 +270,7 @@ std::string get_imphash(const Binary& binary, IMPHASH_MODE mode) { return get_imphash_std(binary); } } + return ""; } Import resolve_ordinals(const Import& import, bool strict, bool use_std) {