Commit: 8fc3368db84035bee91ce0bea2f7592343e19f81
Parent: 44658fccacda3ade0ca2adbb2643b489671fe477
Author: Brian Gix <brian.gix@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2022-06-30 23:26:58
Tree: 5d94daad0b41ef47b8b57cd0f525bcdbc377e3d4

core: make bt_uuid_hash() portable across archs bt_uuid_t is defined as a byte array, so it can cause alignment errors on some architectures, when the two 64 bit halves are treated as u64s. This patch ensures proper alignment across all architectures. Fixes: src/adapter.c: In function ‘bt_uuid_hash’: src/adapter.c:3617:8: error: cast increases required alignment of target type [-Werror=cast-align] val = (uint64_t *)&uuid_128.value.u128; ^ cc1: all warnings being treated as errors

Diffstat

M src/adapter.c | 8 +++- - - - -

1 files changed, 3 insertions(+), 5 deletions(-)

View Full Diff | Patch