[systemd-devel] [PATCH] CODING_STYLE: this also help with unaligned memory accesses

Shawn Landden shawn at churchofgit.com
Tue Mar 24 11:16:27 PDT 2015


And those arches don't get much testing too.
---
 CODING_STYLE | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/CODING_STYLE b/CODING_STYLE
index b687e72..8934954 100644
--- a/CODING_STYLE
+++ b/CODING_STYLE
@@ -14,7 +14,8 @@
 - The destructors always unregister the object from the next bigger
   object, not the other way around
 
-- To minimize strict aliasing violations, we prefer unions over casting
+- To minimize strict aliasing violations and unaligned memory accesses,
+  we prefer unions over casting
 
 - For robustness reasons, destructors should be able to destruct
   half-initialized objects, too
-- 
2.2.1.209.g41e5f3a



More information about the systemd-devel mailing list