summaryrefslogtreecommitdiff
path: root/libkmod
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@intel.com>2015-01-02 12:44:59 -0200
committerLucas De Marchi <lucas.demarchi@intel.com>2015-01-02 12:47:00 -0200
commit0a67d4f360435b6a46e7a260d6f1b8811f3fbdbb (patch)
treee2d71e7ec5af6a2321572ddf8aa7de605da03c55 /libkmod
parentf357866d97995e30c0ad623880d28dc527ff6890 (diff)
downloadkmod-0a67d4f360435b6a46e7a260d6f1b8811f3fbdbb.tar.gz
kmod-0a67d4f360435b6a46e7a260d6f1b8811f3fbdbb.tar.bz2
kmod-0a67d4f360435b6a46e7a260d6f1b8811f3fbdbb.zip
libkmod-elf: Remove unused variables
libkmod/libkmod-elf.c:52:34: warning: unused variable 'native_endianess' [-Wunused-const-variable] static const enum kmod_elf_class native_endianess = KMOD_ELF_LSB;
Diffstat (limited to 'libkmod')
-rw-r--r--libkmod/libkmod-elf.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/libkmod/libkmod-elf.c b/libkmod/libkmod-elf.c
index 9ad8576..d1b0f33 100644
--- a/libkmod/libkmod-elf.c
+++ b/libkmod/libkmod-elf.c
@@ -46,12 +46,6 @@ struct kmod_modversion64 {
char name[64 - sizeof(uint64_t)];
};
-#ifdef WORDS_BIGENDIAN
-static const enum kmod_elf_class native_endianess = KMOD_ELF_MSB;
-#else
-static const enum kmod_elf_class native_endianess = KMOD_ELF_LSB;
-#endif
-
struct kmod_elf {
const uint8_t *memory;
uint8_t *changed;