Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
romainthomas committed Dec 28, 2024
1 parent a9542aa commit 0abb0b3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion include/LIEF/ELF/NoteDetails/core/CoreAuxv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#ifndef LIEF_ELF_CORE_AUXV_H
#define LIEF_ELF_CORE_AUXV_H

#include <vector>
#include <ostream>
#include <map>
#include <utility>
Expand Down
3 changes: 1 addition & 2 deletions include/LIEF/ELF/NoteDetails/core/CorePrPsInfo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#ifndef LIEF_ELF_CORE_PRPSINFO_H
#define LIEF_ELF_CORE_PRPSINFO_H

#include <vector>
#include <ostream>

#include "LIEF/visibility.h"
Expand Down Expand Up @@ -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;
};

Expand Down
1 change: 0 additions & 1 deletion include/LIEF/ELF/NoteDetails/core/CoreSigInfo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#ifndef LIEF_ELF_CORE_SIGINFO_H
#define LIEF_ELF_CORE_SIGINFO_H

#include <vector>
#include <ostream>
#include <memory>

Expand Down
2 changes: 1 addition & 1 deletion include/LIEF/MachO/Stub.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<uint8_t> raw_;
};

Expand Down

0 comments on commit 0abb0b3

Please sign in to comment.