From 242023ce7d219369503fc033e862bad6a6e4c52a Mon Sep 17 00:00:00 2001 From: Dmitry Chestnykh Date: Thu, 22 Feb 2024 21:59:07 +0300 Subject: ldso: Remove unneeded semicolons. We use semicolons in the place of `DL_RELOCATE_RELR()` and `DL_DO_RELOCATE_RELR()` 'calling' so the semicolon in the macro definition leads to semicolon duplication after preprocessing. Signed-off-by: Dmitry Chestnykh --- ldso/include/dl-elf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ldso/include/dl-elf.h b/ldso/include/dl-elf.h index 7143b572c..832f6b1dd 100644 --- a/ldso/include/dl-elf.h +++ b/ldso/include/dl-elf.h @@ -274,7 +274,7 @@ unsigned int __dl_parse_dynamic_info(ElfW(Dyn) *dpnt, unsigned long dynamic_info relr_reloc_addr += CHAR_BIT * sizeof(ElfW(Relr)) - 1; \ } \ } \ - } while (0); + } while (0) /* The macro to prepare data for the above DL_DO_RELOCATE_RELR */ #define DL_RELOCATE_RELR(dyn) \ @@ -289,7 +289,7 @@ unsigned int __dl_parse_dynamic_info(ElfW(Dyn) *dpnt, unsigned long dynamic_info dyn->libname, (void *)relr_start, (void *)relr_end); \ DL_DO_RELOCATE_RELR(dyn->loadaddr, relr_start, relr_end); \ } \ - } while (0); + } while (0) #endif /* __FDPIC__ */ #endif /* _DL_ELF_H */ -- cgit v1.2.3