A small memory footprint AMQP implimentation

Dependents:   iothub_client_sample_amqp remote_monitoring simplesample_amqp

Revision:
6:641a9672db08
Parent:
1:eab586236bfe
Child:
12:b30dacf113f2
diff -r ae49385aff34 -r 641a9672db08 message_receiver.c
--- a/message_receiver.c	Fri Jul 01 10:42:48 2016 -0700
+++ b/message_receiver.c	Fri Jul 29 15:58:39 2016 -0700
@@ -145,7 +145,9 @@
 			}
 			else
 			{
-				BINARY_DATA binary_data = { data_value.bytes, data_value.length };
+                BINARY_DATA binary_data;
+                binary_data.bytes = data_value.bytes;
+                binary_data.length = data_value.length;
 				if (message_add_body_amqp_data(decoded_message, binary_data) != 0)
 				{
 					message_receiver_instance->decode_error = true;
@@ -160,6 +162,7 @@
 	AMQP_VALUE result = NULL;
 
 	MESSAGE_RECEIVER_INSTANCE* message_receiver_instance = (MESSAGE_RECEIVER_INSTANCE*)context;
+    (void)transfer;
 	if (message_receiver_instance->on_message_received != NULL)
 	{
 		MESSAGE_HANDLE message = message_create();
@@ -208,6 +211,7 @@
 static void on_link_state_changed(void* context, LINK_STATE new_link_state, LINK_STATE previous_link_state)
 {
 	MESSAGE_RECEIVER_INSTANCE* message_receiver_instance = (MESSAGE_RECEIVER_INSTANCE*)context;
+    (void)previous_link_state;
 
 	switch (new_link_state)
 	{