A small memory footprint AMQP implimentation

Dependents:   iothub_client_sample_amqp remote_monitoring simplesample_amqp

Revision:
9:c22db038556c
Parent:
7:9e9ab3b0efef
Child:
15:5db103709f20
--- a/saslclientio.c	Fri Aug 12 13:49:27 2016 -0700
+++ b/saslclientio.c	Fri Aug 26 12:59:06 2016 -0700
@@ -263,9 +263,11 @@
     return result;
 }
 
-#ifndef NO_LOGGING
 static void log_incoming_frame(AMQP_VALUE performative)
 {
+#ifdef NO_LOGGING
+    UNUSED(performative);
+#else
     if (xlogging_get_log_function() != NULL)
     {
         AMQP_VALUE descriptor = amqpvalue_get_inplace_descriptor(performative);
@@ -281,10 +283,14 @@
             }
         }
     }
+#endif
 }
 
 static void log_outgoing_frame(AMQP_VALUE performative)
 {
+#ifdef NO_LOGGING
+    UNUSED(performative);
+#else
     if (xlogging_get_log_function() != NULL)
     {
         AMQP_VALUE descriptor = amqpvalue_get_inplace_descriptor(performative);
@@ -300,8 +306,8 @@
             }
         }
     }
+#endif
 }
-#endif
 
 static int saslclientio_receive_byte(SASL_CLIENT_IO_INSTANCE* sasl_client_io_instance, unsigned char b)
 {