[PATCH] shared-qmi: include string.h for memset()
Aleksander Morgado
aleksander at aleksander.es
Tue Aug 21 21:11:59 UTC 2018
On 21/08/18 23:02, Ben Chan wrote:
> 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));
> ^
Pushed, thanks
> ---
> 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>
>
--
Aleksander
https://aleksander.es
More information about the ModemManager-devel
mailing list