From 0abb0b30a51c5b0560dc15039ba34ca31d89f40a Mon Sep 17 00:00:00 2001 From: Romain Thomas Date: Sat, 28 Dec 2024 09:30:10 +0100 Subject: [PATCH] Code cleanup --- include/LIEF/ELF/NoteDetails/core/CoreAuxv.hpp | 1 - include/LIEF/ELF/NoteDetails/core/CorePrPsInfo.hpp | 3 +-- include/LIEF/ELF/NoteDetails/core/CoreSigInfo.hpp | 1 - include/LIEF/MachO/Stub.hpp | 2 +- 4 files changed, 2 insertions(+), 5 deletions(-) diff --git a/include/LIEF/ELF/NoteDetails/core/CoreAuxv.hpp b/include/LIEF/ELF/NoteDetails/core/CoreAuxv.hpp index c4a22b0d66..4bdf45df07 100644 --- a/include/LIEF/ELF/NoteDetails/core/CoreAuxv.hpp +++ b/include/LIEF/ELF/NoteDetails/core/CoreAuxv.hpp @@ -16,7 +16,6 @@ #ifndef LIEF_ELF_CORE_AUXV_H #define LIEF_ELF_CORE_AUXV_H -#include #include #include #include diff --git a/include/LIEF/ELF/NoteDetails/core/CorePrPsInfo.hpp b/include/LIEF/ELF/NoteDetails/core/CorePrPsInfo.hpp index 1e34759376..87454fc745 100644 --- a/include/LIEF/ELF/NoteDetails/core/CorePrPsInfo.hpp +++ b/include/LIEF/ELF/NoteDetails/core/CorePrPsInfo.hpp @@ -16,7 +16,6 @@ #ifndef LIEF_ELF_CORE_PRPSINFO_H #define LIEF_ELF_CORE_PRPSINFO_H -#include #include #include "LIEF/visibility.h" @@ -85,7 +84,7 @@ class LIEF_API CorePrPsInfo : public Note { return os; } private: - ARCH arch_ = ARCH::NONE; + [[maybe_unused]] ARCH arch_ = ARCH::NONE; Header::CLASS class_ = Header::CLASS::NONE; }; diff --git a/include/LIEF/ELF/NoteDetails/core/CoreSigInfo.hpp b/include/LIEF/ELF/NoteDetails/core/CoreSigInfo.hpp index ea94ffd1a9..d9fce98444 100644 --- a/include/LIEF/ELF/NoteDetails/core/CoreSigInfo.hpp +++ b/include/LIEF/ELF/NoteDetails/core/CoreSigInfo.hpp @@ -16,7 +16,6 @@ #ifndef LIEF_ELF_CORE_SIGINFO_H #define LIEF_ELF_CORE_SIGINFO_H -#include #include #include diff --git a/include/LIEF/MachO/Stub.hpp b/include/LIEF/MachO/Stub.hpp index 19e54a314d..295d814de1 100644 --- a/include/LIEF/MachO/Stub.hpp +++ b/include/LIEF/MachO/Stub.hpp @@ -159,7 +159,7 @@ class LIEF_API Stub { private: target_info_t target_info_; uint64_t address_ = 0; - mutable uint64_t target_addr_ = 0; + [[maybe_unused]] mutable uint64_t target_addr_ = 0; std::vector raw_; };