From: visa Date: Sat, 27 Nov 2021 15:13:09 +0000 (+0000) Subject: Remove an unneeded variable to fix compiler warning with clang 13. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1be08e7015493798a5e712a98bf2e382d3097c62;p=openbsd Remove an unneeded variable to fix compiler warning with clang 13. OK jsg@ --- diff --git a/libexec/ld.so/mips64/rtld_machine.c b/libexec/ld.so/mips64/rtld_machine.c index 17d29d8a13d..39018e7352c 100644 --- a/libexec/ld.so/mips64/rtld_machine.c +++ b/libexec/ld.so/mips64/rtld_machine.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtld_machine.c,v 1.33 2019/12/07 22:57:48 guenther Exp $ */ +/* $OpenBSD: rtld_machine.c,v 1.34 2021/11/27 15:13:09 visa Exp $ */ /* * Copyright (c) 1998-2004 Opsycon AB, Sweden. @@ -82,7 +82,6 @@ _dl_md_reloc(elf_object_t *object, int rel, int relsz) for (i = 0; i < numrel; i++, relocs++) { Elf_Addr r_addr = relocs->r_offset + loff; const char *symn; - int type; if (ELF_R_SYM(relocs->r_info) == 0xffffff) continue; @@ -90,7 +89,6 @@ _dl_md_reloc(elf_object_t *object, int rel, int relsz) sym = object->dyn.symtab; sym += ELF_R_SYM(relocs->r_info); symn = object->dyn.strtab + sym->st_name; - type = ELF_R_TYPE(relocs->r_info); this = NULL; if (ELF_R_SYM(relocs->r_info)) {