Page MenuHomeFreeBSD

Disable -Wcast-align in libbsm and libauditd
ClosedPublic

Authored by asomers on Jul 28 2018, 5:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 9, 3:32 PM
Unknown Object (File)
Wed, Oct 8, 4:39 AM
Unknown Object (File)
Sun, Oct 5, 3:42 AM
Unknown Object (File)
Sep 15 2025, 3:32 AM
Unknown Object (File)
Sep 12 2025, 5:51 AM
Unknown Object (File)
Sep 1 2025, 11:48 AM
Unknown Object (File)
Aug 30 2025, 5:02 AM
Unknown Object (File)
Aug 14 2025, 4:20 AM
Subscribers

Details

Summary

Disable -Wcast-align in libbsm and libauditd

Along with some pending upstream changes, this will allow raising the WARNS
level.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 18397
Build 18111: arc lint + arc unit

Event Timeline

aniketp requested changes to this revision.Jul 28 2018, 6:10 PM
aniketp added inline comments.
lib/libauditd/Makefile
27

s/cating/casting

lib/libbsm/Makefile
185

Same here!

This revision now requires changes to proceed.Jul 28 2018, 6:10 PM
lib/libauditd/Makefile
30–32

Isn't the next best thing disabling it in only one file?

Does CWARNFLAGS.auditd_lib.c+= -Wno-cast-align work?

Similar below.

LGTM assuming the CWARNFLAGS.foo construct actually works — I did not test it :-).

This revision is now accepted and ready to land.Jul 28 2018, 7:55 PM
This revision was automatically updated to reflect the committed changes.