OSDN Git Service

hciemu: Fix gcc 4.7 compilation error
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 16 May 2012 10:07:09 +0000 (13:07 +0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 17 May 2012 17:44:58 +0000 (20:44 +0300)
commit982ee6499b76b21e1a7e601d02dff1c54b08c48d
tree0fa8a34e2aafc9594310f98e3f1550da17155042
parent5b7511dcfb3c5b44907575e5e43d926a8c406bf1
hciemu: Fix gcc 4.7 compilation error

This patch fixes the following compilation error with gcc 4.7:

  CC     test/hciemu.o
test/hciemu.c: In function 'getbdaddrbyname':
test/hciemu.c:1115:3: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
test/hciemu.c