Azure IoT common library

Dependents:   STM32F746_iothub_client_sample_mqtt f767zi_mqtt iothub_client_sample_amqp iothub_client_sample_http ... more

Revision:
25:8507bf644fdf
Parent:
21:b92006c5b9ff
Child:
30:ce3813c5a692
--- a/strings.c	Thu Apr 06 14:12:06 2017 -0700
+++ b/strings.c	Fri Apr 21 14:51:10 2017 -0700
@@ -119,6 +119,9 @@
     return result;
 }
 
+#if defined(__GNUC__)
+__attribute__ ((format (printf, 1, 2)))
+#endif
 STRING_HANDLE STRING_construct_sprintf(const char* format, ...)
 {
     STRING* result;
@@ -507,6 +510,9 @@
     return result;
 }
 
+#if defined(__GNUC__)
+__attribute__ ((format (printf, 2, 3)))
+#endif
 int STRING_sprintf(STRING_HANDLE handle, const char* format, ...)
 {
     int result;