Page MenuHomeFreeBSD

rtld-elf: make it compile with WARNS=3
ClosedPublic

Authored by arichardson on Sep 13 2018, 1:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 12 2024, 2:45 AM
Unknown Object (File)
Feb 23 2024, 11:30 AM
Unknown Object (File)
Feb 23 2024, 11:26 AM
Unknown Object (File)
Feb 23 2024, 11:26 AM
Unknown Object (File)
Feb 23 2024, 11:26 AM
Unknown Object (File)
Feb 23 2024, 11:12 AM
Unknown Object (File)
Jan 18 2024, 9:30 PM
Unknown Object (File)
Jan 4 2024, 9:29 AM
Subscribers

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

libexec/rtld-elf/libmap.c
203 ↗(On Diff #47998)

Merge 'i' declaration with the 'cnt' line.

libexec/rtld-elf/malloc.c
163 ↗(On Diff #47998)

Use the opportunity to remove 'register' qualifier ?

libexec/rtld-elf/rtld.c
271 ↗(On Diff #47998)

Wny this type change is needed ?

libexec/rtld-elf/malloc.c
163 ↗(On Diff #47998)

Okay, will do.

libexec/rtld-elf/rtld.c
271 ↗(On Diff #47998)

signed-unsigned comparison. I could also add a cast instead?

libexec/rtld-elf/rtld.c
271 ↗(On Diff #47998)

I think that new type for the var should be Elf_Addr, if any. Look at its use. In fact this is an ABI issue.

Practically Elf_Addr has the same representation as size_t on all supported platforms, but this is not strictly required.

arichardson marked 6 inline comments as done.
  • Address feedback
  • remove register specifier from malloc.c
kib added inline comments.
libexec/rtld-elf/libmap.h
8 ↗(On Diff #48008)

I would do a follow-up commit removing space before '('. Or you might add it to this change.

This revision is now accepted and ready to land.Sep 13 2018, 3:39 PM

I'd mention the de-register part of the change in the commit message as well as the warns fixes.

This revision was automatically updated to reflect the committed changes.