[PATCH] shared-qmi: include string.h for memset()

Ben Chan benchan at chromium.org
Tue Aug 21 21:02:20 UTC 2018


This patch fixes the following compiler warning:

mm-shared-qmi.c:447:9: error: implicitly declaring library function 'memset' with type 'void *(void *, int, unsigned long)' [-Werror,-Wimplicit-function-declaration]
        memset (buf, 0, sizeof (buf));
        ^
---
 src/mm-shared-qmi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mm-shared-qmi.c b/src/mm-shared-qmi.c
index 25fc29a1..dd08d7fd 100644
--- a/src/mm-shared-qmi.c
+++ b/src/mm-shared-qmi.c
@@ -14,6 +14,7 @@
  */
 
 #include <config.h>
+#include <string.h>
 #include <arpa/inet.h>
 
 #include <glib-object.h>
-- 
2.18.0.865.gffc8e1a3cd6-goog



More information about the ModemManager-devel mailing list