mooshimeter-dmm: silence compiler warning (memset() prototypes)

The Mooshimeter driver uses mem*() and str*() library calls. Include the
<string.h> header file to silence compiler warnings.

  ...
  ./src/hardware/mooshimeter-dmm/protocol.c: In function 'lookup_tree_path':
  ./src/hardware/mooshimeter-dmm/protocol.c:275:3: warning: implicit declaration of function 'strchr' [-Wimplicit-function-declaration]
     end = strchr(path, ':');
     ^
  ./src/hardware/mooshimeter-dmm/protocol.c:275:9: warning: incompatible implicit declaration of built-in function 'strchr' [enabled by default]
     end = strchr(path, ':');
           ^
  ...
This commit is contained in:
Gerhard Sittig 2019-10-29 17:48:31 +01:00
parent 113de3a572
commit 76dea519e4
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@
#include <config.h> #include <config.h>
#include <gio/gio.h> #include <gio/gio.h>
#include <math.h> #include <math.h>
#include <string.h>
#include "protocol.h" #include "protocol.h"
/* /*