[PATCH] modem-helpers-qmi: include string.h for memset()
Ben Chan
benchan at chromium.org
Tue Oct 16 22:42:44 UTC 2018
This patch fixes the following compiler warning:
mm-modem-helpers-qmi.c:568:5: error: implicitly declaring library function 'memset' with type 'void *(void *, int, unsigned int)' [-Werror,-Wimplicit-function-declaration]
memset (extended_qmi_lte_bands, 0, extended_qmi_lte_bands_size * sizeof (guint64));
^
---
src/mm-modem-helpers-qmi.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/mm-modem-helpers-qmi.c b/src/mm-modem-helpers-qmi.c
index e48d2eb7..e5e3243c 100644
--- a/src/mm-modem-helpers-qmi.c
+++ b/src/mm-modem-helpers-qmi.c
@@ -14,6 +14,8 @@
* Copyright (C) 2018 Aleksander Morgado <aleksander at aleksander.es>
*/
+#include <string.h>
+
#include <ModemManager.h>
#include <mm-errors-types.h>
--
2.19.1.331.ge82ca0e54c-goog
More information about the ModemManager-devel
mailing list