diff --git a/src/output-json.c b/src/output-json.c index 9106ca2bee..89311bdd92 100644 --- a/src/output-json.c +++ b/src/output-json.c @@ -435,7 +435,7 @@ OutputCtx *OutputJsonInitCtx(ConfNode *conf) "Please set sensor-name globally."); } else { - ConfGet("sensor-name", (char **)&sensor_name); + (void)ConfGet("sensor-name", (char **)&sensor_name); } if (unlikely(json_ctx == NULL)) {