From cb52cc6e44ed85515cc81685adacd7c40a48b8db Mon Sep 17 00:00:00 2001 From: Benjamin Kaduk Date: Thu, 9 Jan 2014 12:13:27 -0500 Subject: [PATCH] ktc: fix up initializer for local_tokens The old initializer was incomplete (initializing only one of the four fields in the struct), which prompted warnings from clang (-Wmissing-field-initializers): ../../../openafs/src/auth/ktc.c:149:2: warning: missing field 'server' initializer [-Wmissing-field-initializers] Since the variable is at file scope, it will be initialized to all zeros anyway, and there is no need for an explicit initializer. Change-Id: Ib7690759ec3403d1913852e30bb553ef8ac8f019 Reviewed-on: http://gerrit.openafs.org/10686 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- src/auth/ktc.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/auth/ktc.c b/src/auth/ktc.c index 9500ec8356..002f53bb5d 100644 --- a/src/auth/ktc.c +++ b/src/auth/ktc.c @@ -145,11 +145,7 @@ static struct { struct ktc_principal server; struct ktc_principal client; struct ktc_token token; -} local_tokens[MAXLOCALTOKENS] = { { -0}, { -0}, { -0}, { -0}}; +} local_tokens[MAXLOCALTOKENS]; static int GetToken(struct ktc_principal *aserver, struct ktc_token *atoken,