sensu plugin: fix compiler warning when build with --enable-debug
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Tue, 19 Feb 2019 17:53:19 +0000 (18:53 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Tue, 19 Feb 2019 17:54:54 +0000 (18:54 +0100)
commit639c5b1ea0665a3bad006b8f02b03c52f304038c
tree217f59e9a0275593e62ae1342d9a6821d22c2b0b
parent6c4a93fab7fd24e7bf9caad08a9b6abb834dafa4
sensu plugin: fix compiler warning when build with --enable-debug

In file included from src/write_sensu.c:31:
src/write_sensu.c: In function ‘sensu_config’:
./src/daemon/plugin.h:398:20: warning: ‘%s’ directive argument is null [-Wformat-overflow=]
  398 | #define DEBUG(...) plugin_log(LOG_DEBUG, __VA_ARGS__)
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/write_sensu.c:1227:7: note: in expansion of macro ‘DEBUG’
 1227 |       DEBUG("write_sensu plugin: Got tag: %s", tmp);
      |       ^~~~~
src/write_sensu.c:1227:43: note: format string is defined here
 1227 |       DEBUG("write_sensu plugin: Got tag: %s", tmp);
      |
src/write_sensu.c