[PATCH] modem-helpers-qmi: include string.h for memset()
Aleksander Morgado
aleksander at aleksander.es
Wed Oct 17 09:06:08 UTC 2018
On Wed, Oct 17, 2018 at 12:42 AM Ben Chan <benchan at chromium.org> wrote:
>
> 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));
> ^
Pushed to git master, thanks!
> ---
> 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
>
--
Aleksander
https://aleksander.es
More information about the ModemManager-devel
mailing list