From 76dea519e4a459440dd0412e9df00b43b1765b34 Mon Sep 17 00:00:00 2001 From: Gerhard Sittig Date: Tue, 29 Oct 2019 17:48:31 +0100 Subject: [PATCH] mooshimeter-dmm: silence compiler warning (memset() prototypes) The Mooshimeter driver uses mem*() and str*() library calls. Include the 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, ':'); ^ ... --- src/hardware/mooshimeter-dmm/protocol.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hardware/mooshimeter-dmm/protocol.c b/src/hardware/mooshimeter-dmm/protocol.c index 38fd3fcc..15aa8f56 100644 --- a/src/hardware/mooshimeter-dmm/protocol.c +++ b/src/hardware/mooshimeter-dmm/protocol.c @@ -20,6 +20,7 @@ #include #include #include +#include #include "protocol.h" /*