Azure IoT common library

Dependents:   STM32F746_iothub_client_sample_mqtt f767zi_mqtt iothub_client_sample_amqp iothub_client_sample_http ... more

Revision:
19:2e0811512ceb
Parent:
6:c55b013dfc2a
Child:
21:b92006c5b9ff
diff -r 6d8a413a4d9a -r 2e0811512ceb map.c
--- a/map.c	Fri Jan 13 18:41:15 2017 -0800
+++ b/map.c	Sat Jan 28 09:35:22 2017 -0800
@@ -2,10 +2,6 @@
 // Licensed under the MIT license. See LICENSE file in the project root for full license information.
 
 #include <stdlib.h>
-#ifdef _CRTDBG_MAP_ALLOC
-#include <crtdbg.h>
-#endif
-
 #include "azure_c_shared_utility/gballoc.h"
 #include "azure_c_shared_utility/map.h"
 #include "azure_c_shared_utility/xlogging.h"
@@ -431,7 +427,7 @@
                 }
                 else
                 {
-                    memcpy(newValue, value, valueLength + 1);
+                    (void)memcpy(newValue, value, valueLength + 1);
                     handleData->values[index] = newValue;
                     /*Codes_SRS_MAP_02_019: [Otherwise, Map_AddOrUpdate shall return MAP_OK.] */
                     result = MAP_OK;