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
F135156743: D17150.id48008.diff
Fri, Nov 7, 12:22 AM
F135156731: D17150.id.diff
Fri, Nov 7, 12:21 AM
Unknown Object (File)
Thu, Nov 6, 6:12 PM
Unknown Object (File)
Thu, Nov 6, 5:41 PM
Unknown Object (File)
Thu, Nov 6, 2:52 PM
Unknown Object (File)
Tue, Oct 28, 6:14 AM
Unknown Object (File)
Tue, Oct 21, 7:43 AM
Unknown Object (File)
Tue, Oct 21, 7:42 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.