From: Gerhard Sittig Date: Tue, 29 Oct 2019 16:48:31 +0000 (+0100) Subject: mooshimeter-dmm: silence compiler warning (memset() prototypes) X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=76dea519e4a459440dd0412e9df00b43b1765b34;p=libsigrok.git 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, ':'); ^ ... --- 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" /*