modlib/modlib_symbols.c: Fix usage of void* arithmetics

In file included from modlib/modlib_symbols.c:34:
modlib/modlib_symbols.c: In function 'modlib_symvalue':
modlib/modlib_symbols.c:432:41: error: pointer of type 'void *' used in arithmetic [-Werror=pointer-arith]
  432 |               (uintptr_t)(sym->st_value + symbol->sym_value));
      |                                         ^
cc1: all warnings being treated as errors
make[1]: *** [Makefile:156: bin/modlib_symbols.o] Error 1
This commit is contained in:
Ville Juven 2024-10-17 12:09:17 +03:00 committed by Xiang Xiao
parent 25b33f202e
commit 17c102c10c
1 changed files with 1 additions and 1 deletions

View File

@ -429,7 +429,7 @@ int modlib_symvalue(FAR struct module_s *modp,
"%08" PRIxPTR "+%08" PRIxPTR "=%08" PRIxPTR "\n",
loadinfo->iobuffer,
(uintptr_t)sym->st_value, (uintptr_t)symbol->sym_value,
(uintptr_t)(sym->st_value + symbol->sym_value));
(uintptr_t)(sym->st_value + (uintptr_t)symbol->sym_value));
sym->st_value += ((uintptr_t)symbol->sym_value);
}