(Resend since not all changes were in v4 that were supposed to be.) Address Daniel's comments on v2/v3.
In particular, gcc (Debian 12.2.0-3) only warns when the redefinition is to a different value. It gets confused by the space, so just remove it. This causes gcc -x c -fsyntax-only -Iinclude -I. util/grub-module-verifierXX.c to build without warnings. Interdiff attached. Peter Jones (1): grub-module-verifierxx.c: enable running standalone checkers include/grub/elf.h | 4 ++-- util/grub-module-verifier32.c | 2 ++ util/grub-module-verifier64.c | 2 ++ util/grub-module-verifierXX.c | 9 +++++++++ 4 files changed, 15 insertions(+), 2 deletions(-) Interdiff against v3: diff --git a/include/grub/elf.h b/include/grub/elf.h index 0e70651d4b..e6f073bc90 100644 --- a/include/grub/elf.h +++ b/include/grub/elf.h @@ -2593,8 +2593,8 @@ typedef Elf64_Word Elf_Word; typedef Elf64_Xword Elf_Xword; typedef Elf64_Shnum Elf_Shnum; -#define ELF_ST_BIND(val) ELF64_ST_BIND (val) -#define ELF_ST_TYPE(val) ELF64_ST_TYPE (val) +#define ELF_ST_BIND(val) ELF64_ST_BIND(val) +#define ELF_ST_TYPE(val) ELF64_ST_TYPE(val) #define ELF_ST_INFO(a,b) ELF64_ST_INFO(a,b) #define ELF_R_SYM(val) ELF64_R_SYM(val) #define ELF_R_TYPE(val) ELF64_R_TYPE(val) -- 2.35.1 _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel