From e13fc2ba62c7196be542c9d9e12c873f32eddc74 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Sat, 7 Nov 2015 17:01:35 +0100 Subject: [PATCH] force rfcomm_channel_event to be 2-byte aligned -> avoid -Wcast-align warning --- src/rfcomm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rfcomm.h b/src/rfcomm.h index 0f7dda2b1..2790e23e7 100644 --- a/src/rfcomm.h +++ b/src/rfcomm.h @@ -209,6 +209,7 @@ typedef enum { typedef struct rfcomm_channel_event { RFCOMM_CHANNEL_EVENT type; + uint16_t dummy; // force rfcomm_channel_event to be 2-byte aligned -> avoid -Wcast-align warning } rfcomm_channel_event_t; typedef struct rfcomm_channel_event_pn {