From: Joshua Colp Date: Fri, 4 Dec 2015 14:22:08 +0000 (-0400) Subject: build: Fix building with newer GCC. X-Git-Tag: 11.21.0-rc1~13^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b59b0bb509f1a7af741f69b238e849d7741f8bca;p=thirdparty%2Fasterisk.git 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 --- 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); }