Fix some warnings triggered by gcc 4.6 -Wunused-but-set-variable
This commit is contained in:
@@ -90,7 +90,7 @@ void af_alg_prf_probe(char *plugin)
|
||||
/**
|
||||
* Get the kernel algorithm string and block size for our identifier
|
||||
*/
|
||||
static size_t lookup_alg(integrity_algorithm_t algo, char **name, bool *xcbc)
|
||||
static size_t lookup_alg(pseudo_random_function_t algo, char **name, bool *xcbc)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
||||
@@ -161,7 +161,7 @@ static int open_connection(char *path)
|
||||
*/
|
||||
static bool read_key(private_agent_private_key_t *this, public_key_t *pubkey)
|
||||
{
|
||||
int len, count;
|
||||
int len;
|
||||
char buf[2048];
|
||||
chunk_t blob, key, type, n;
|
||||
|
||||
@@ -184,7 +184,7 @@ static bool read_key(private_agent_private_key_t *this, public_key_t *pubkey)
|
||||
DBG1(DBG_LIB, "received invalid ssh-agent identity response");
|
||||
return FALSE;
|
||||
}
|
||||
count = read_uint32(&blob);
|
||||
read_uint32(&blob);
|
||||
|
||||
while (blob.len)
|
||||
{
|
||||
|
||||
@@ -504,7 +504,7 @@ gcrypt_rsa_private_key_t *gcrypt_rsa_private_key_load(key_type_t type,
|
||||
va_list args)
|
||||
{
|
||||
private_gcrypt_rsa_private_key_t *this;
|
||||
chunk_t n, e, d, p, q, exp, u;
|
||||
chunk_t n, e, d, p, q, u;
|
||||
gcry_error_t err;
|
||||
|
||||
n = e = d = p = q = u = chunk_empty;
|
||||
@@ -531,7 +531,7 @@ gcrypt_rsa_private_key_t *gcrypt_rsa_private_key_load(key_type_t type,
|
||||
case BUILD_RSA_EXP1:
|
||||
case BUILD_RSA_EXP2:
|
||||
/* not required for gcrypt */
|
||||
exp = va_arg(args, chunk_t);
|
||||
va_arg(args, chunk_t);
|
||||
continue;
|
||||
case BUILD_RSA_COEFF:
|
||||
u = va_arg(args, chunk_t);
|
||||
|
||||
Reference in New Issue
Block a user