We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c00676a commit 98d1813Copy full SHA for 98d1813
src/patchelf.cc
@@ -212,10 +212,10 @@ struct ElfType
212
};
213
214
215
-ElfType getElfType(const FileContents & fileContents)
+[[nodiscard]] static ElfType getElfType(const FileContents & fileContents)
216
{
217
/* Check the ELF header for basic validity. */
218
- if (fileContents->size() < static_cast<off_t>(sizeof(Elf32_Ehdr)))
+ if (fileContents->size() < sizeof(Elf32_Ehdr))
219
error("missing ELF header");
220
221
auto contents = fileContents->data();
0 commit comments