From b59b0bb509f1a7af741f69b238e849d7741f8bca Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Fri, 4 Dec 2015 10:22:08 -0400 Subject: [PATCH] build: Fix building with newer GCC. Newer GCC is upset that the features flags are uninitialized. Zero them out so it is less upset. Change-Id: I05162699e1b36bce4145f58a63b47ad19c6975ac --- main/features.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main/features.c b/main/features.c index c0f4b8d5fa..4da60bc2ab 100644 --- a/main/features.c +++ b/main/features.c @@ -3722,14 +3722,12 @@ static int feature_interpret(struct ast_channel *chan, struct ast_channel *peer, char dynamic_features_buf[128]; const char *peer_dynamic_features, *chan_dynamic_features; - struct ast_flags features; + struct ast_flags features = { 0, }; struct ast_call_feature feature; if (sense == FEATURE_SENSE_CHAN) { - /* Coverity - This uninit_use should be ignored since this macro initializes the flags */ ast_copy_flags(&features, &(config->features_caller), AST_FLAGS_ALL); } else { - /* Coverity - This uninit_use should be ignored since this macro initializes the flags */ ast_copy_flags(&features, &(config->features_callee), AST_FLAGS_ALL); } -- 2.47.2