Page MenuHomeFreeBSD

Disable -Wcast-align in libbsm and libauditd
ClosedPublic

Authored by asomers on Jul 28 2018, 5:54 PM.
Tags
None
Referenced Files
F133513014: D16486.id45959.diff
Sun, Oct 26, 7:50 AM
F133504369: D16486.diff
Sun, Oct 26, 6:39 AM
F133495106: D16486.id45956.diff
Sun, Oct 26, 5:14 AM
F133471583: D16486.id45962.diff
Sun, Oct 26, 1:09 AM
F133471575: D16486.id.diff
Sun, Oct 26, 1:09 AM
F133471573: D16486.id45956.diff
Sun, Oct 26, 1:09 AM
F133434870: D16486.diff
Sat, Oct 25, 6:44 PM
Unknown Object (File)
Sat, Oct 25, 2:33 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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

aniketp requested changes to this revision.Jul 28 2018, 6:10 PM
aniketp added inline comments.
lib/libauditd/Makefile
27 ↗(On Diff #45956)

s/cating/casting

lib/libbsm/Makefile
185 ↗(On Diff #45956)

Same here!

This revision now requires changes to proceed.Jul 28 2018, 6:10 PM
lib/libauditd/Makefile
30–32 ↗(On Diff #45956)

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.