summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/mips-relocs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/mips-relocs.c b/tools/mips-relocs.c
index b690fa53c4..8be69d320f 100644
--- a/tools/mips-relocs.c
+++ b/tools/mips-relocs.c
@@ -6,6 +6,7 @@
* SPDX-License-Identifier: GPL-2.0+
*/
+#include <assert.h>
#include <elf.h>
#include <errno.h>
#include <fcntl.h>
@@ -69,6 +70,11 @@
case 8: \
_val = is_be ? htobe64(val) : htole64(val); \
break; \
+ default: \
+ /* We should never reach here */ \
+ _val = 0; \
+ assert(0); \
+ break; \
} \
\
if (is_64) \