Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F133513014
D16486.id45959.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D16486.id45959.diff
View Options
Index: lib/libauditd/Makefile
===================================================================
--- lib/libauditd/Makefile
+++ lib/libauditd/Makefile
@@ -23,3 +23,10 @@
MAN=
.include <bsd.lib.mk>
+
+# Disable -Wcast-align. Casting res->ai_addr in auditd_set_host triggers this
+# warning, but it's ok because res->ai_addr must've originally pointed to a
+# sockaddr_in or sockaddr_in6 anyway.
+# Better would be to disable this warning in just that one function, but GCC
+# 4.2 can't do that :( .
+CWARNFLAGS.auditd_lib.c+= -Wno-cast-align
Index: lib/libbsm/Makefile
===================================================================
--- lib/libbsm/Makefile
+++ lib/libbsm/Makefile
@@ -181,3 +181,10 @@
setaudit.2 setaudit_addr.2
.include <bsd.lib.mk>
+
+# Disable -Wcast-align. Casting sa_local in au_to_socket_ex triggers this
+# warning, but it's ok because sa_local must've originally pointed to a
+# sockaddr_in or sockaddr_in6 anyway.
+# Better would be to disable this warning in just that one function, but GCC
+# 4.2 can't do that :( .
+CWARNFLAGS.bsm_token.c+= -Wno-cast-align
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 27, 7:50 AM (11 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24282618
Default Alt Text
D16486.id45959.diff (1 KB)
Attached To
Mode
D16486: Disable -Wcast-align in libbsm and libauditd
Attached
Detach File
Event Timeline
Log In to Comment