A small memory footprint AMQP implimentation
Dependents: iothub_client_sample_amqp remote_monitoring simplesample_amqp
Diff: message_sender.c
- Revision:
- 9:c22db038556c
- Parent:
- 7:9e9ab3b0efef
- Child:
- 12:b30dacf113f2
--- a/message_sender.c Fri Aug 12 13:49:27 2016 -0700 +++ b/message_sender.c Fri Aug 26 12:59:06 2016 -0700 @@ -135,9 +135,13 @@ return 0; } -#ifndef NO_LOGGING static void log_message_chunk(MESSAGE_SENDER_INSTANCE* message_sender_instance, const char* name, AMQP_VALUE value) { +#ifdef NO_LOGGING + UNUSED(message_sender_instance); + UNUSED(name); + UNUSED(value); +#else if (xlogging_get_log_function() != NULL && message_sender_instance->is_trace_on == 1) { char* value_as_string = NULL; @@ -148,8 +152,8 @@ amqpalloc_free(value_as_string); } } +#endif } -#endif static SEND_ONE_MESSAGE_RESULT send_one_message(MESSAGE_SENDER_INSTANCE* message_sender_instance, MESSAGE_WITH_CALLBACK* message_with_callback, MESSAGE_HANDLE message) {