force various sdp_query_.. structs to be word aligned

This commit is contained in:
Matthias Ringwald 2015-11-07 16:34:25 +01:00
parent 92df4ba8f7
commit 9283999a68

View File

@ -81,6 +81,7 @@ typedef struct sdp_query_event {
typedef struct sdp_query_complete_event {
uint8_t type;
uint8_t status; // 0 == OK
void * dummy; // force sdp_query_complete_event struct to be word aligned -> avoid -Wcast-align warning
} sdp_query_complete_event_t;
// SDP Parser event to deliver an attribute value byte by byte
@ -91,6 +92,7 @@ typedef struct sdp_query_attribute_value_event {
uint32_t attribute_length;
int data_offset;
uint8_t data;
void * dummy; // force sdp_query_attribute_value_event struct to be word aligned -> avoid -Wcast-align warning
} sdp_query_attribute_value_event_t;
@ -100,6 +102,7 @@ typedef struct sdp_query_service_record_handle_event {
uint16_t total_count;
uint16_t current_count;
uint32_t record_handle;
void * dummy; // force sdp_query_service_record_handle_event struct to be word aligned -> avoid -Wcast-align warning
} sdp_query_service_record_handle_event_t;
#endif