Page MenuHomeFreeBSD

usr.bin/elf2aout build warning fix
Needs ReviewPublic

Authored by aprieger_llnw.com on Jun 5 2017, 8:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 22 2023, 10:52 PM
Unknown Object (File)
Nov 18 2023, 9:29 AM
Unknown Object (File)
Nov 18 2023, 6:40 AM
Unknown Object (File)
Nov 18 2023, 5:22 AM
Unknown Object (File)
Jun 14 2023, 1:29 AM
Unknown Object (File)
May 4 2023, 4:43 PM
Unknown Object (File)
Jan 7 2023, 5:49 AM
Unknown Object (File)
Dec 31 2022, 6:58 PM
Subscribers
None

Details

Summary

usr.bin/elf2aout (Convert ELF binary to a.out format) build warning fix

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 9685
Build 10125: arc lint + arc unit

Event Timeline

Changelog:
Pre-fix warnings are at: https://gist.github.com/aprieger-llnw/ec32a64f35be3e4f0d250da53310ea27

  1. usr.bin/elf2aout/elf2aout.c
    • Warnings:
      • warning: cast from 'char *' to 'Elf64_Phdr *' increases required alignment from 1 to 8 [-Wcast-align]
    • Fixes:
      • added the explicit modifier "void *" to the casting in order to force the alignment

@emaste Is this "ok" to commit or is this masking something else going on?