From 29ac7b366bc2bd836251b7eb8b1a04922aade8cb Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 20 Apr 2023 19:40:38 +0200 Subject: [PATCH] yaml: fix dead store conf-yaml-loader.c:391:17: warning: Value stored to 'retval' is never read [deadcode.DeadStores] retval = -1; ^ ~~ 1 warning generated. --- src/conf-yaml-loader.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/conf-yaml-loader.c b/src/conf-yaml-loader.c index cef10ec88f..9312a189e8 100644 --- a/src/conf-yaml-loader.c +++ b/src/conf-yaml-loader.c @@ -388,7 +388,6 @@ static int ConfYamlParse(yaml_parser_t *parser, ConfNode *parent, int inseq, int SCLogDebug("event.type=YAML_MAPPING_START_EVENT; state=%d", state); if (state == CONF_INCLUDE) { SCLogError("Include fields cannot be a mapping: line %zu", parser->mark.line); - retval = -1; goto fail; } if (inseq) {