From: Jeffrey Altman Date: Fri, 6 Jul 2012 04:29:59 +0000 (-0400) Subject: ptserver: unused by set variable 'eid_s' X-Git-Tag: upstream/1.8.0_pre1^2~2243 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=9be78ab820476e27b31440dc2f6ba425d21d5436;p=packages%2Fo%2Fopenafs.git ptserver: unused by set variable 'eid_s' Third declaration of 'eid_s' in WalkNextChain() set but unused. [-Werror=unused-but-set-variable] Change-Id: I7a4e2ea3dea3d58379e31d3c6cb4b3169a882bce Reviewed-on: http://gerrit.openafs.org/7737 Reviewed-by: Simon Wilkinson Tested-by: BuildBot Reviewed-by: Jeffrey Altman --- diff --git a/src/ptserver/db_verify.c b/src/ptserver/db_verify.c index fde0252c4..a4bbabd06 100644 --- a/src/ptserver/db_verify.c +++ b/src/ptserver/db_verify.c @@ -529,17 +529,13 @@ WalkNextChain(char map[], /* one byte per db entry */ if (id == PRBADID) continue; else if (id) { - int eid_s, id_s; + int id_s; sgcount++; /* in case the ids are large, convert to pure sign. */ if (id > 0) id_s = 1; else id_s = -1; - if (eid > 0) - eid_s = 1; - else - eid_s = -1; if (id_s > 0) { fprintf(stderr, "User can't be member of supergroup list\n");