]> sigrok.org Git - libsigrok.git/commit
mooshimeter-dmm: silence compiler warning (memset() prototypes)
authorGerhard Sittig <redacted>
Tue, 29 Oct 2019 16:48:31 +0000 (17:48 +0100)
committerGerhard Sittig <redacted>
Tue, 29 Oct 2019 16:50:07 +0000 (17:50 +0100)
commit76dea519e4a459440dd0412e9df00b43b1765b34
tree32bd669e5a8db44466590653d765d0e55e14f2c0
parent113de3a57290347b652c93eebc7ec0b32b1bea6d
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, ':');
           ^
  ...
src/hardware/mooshimeter-dmm/protocol.c