Commit d4cdbab9 authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

Avoid warnings with -pedantic, specifically:

Conversion between void * and function pointer.
Value computed not used.
Signed/unsigned argument.
parent 5f834ab1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -618,7 +618,7 @@ static LHASH_OF(FUNCTION) *prog_init(void)
		return(NULL);

	for (f=functions; f->name != NULL; f++)
		lh_FUNCTION_insert(ret,f);
		(void)lh_FUNCTION_insert(ret,f);
	return(ret);
	}
+1 −1
Original line number Diff line number Diff line
@@ -94,7 +94,7 @@ static const EVP_PKEY_ASN1_METHOD *standard_methods[] =
	};

typedef int sk_cmp_fn_type(const char * const *a, const char * const *b);
DECLARE_STACK_OF(EVP_PKEY_ASN1_METHOD);
DECLARE_STACK_OF(EVP_PKEY_ASN1_METHOD)
static STACK_OF(EVP_PKEY_ASN1_METHOD) *app_methods = NULL;


+1 −1
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@
#include "asn1_locl.h"

typedef STACK_OF(X509_NAME_ENTRY) STACK_OF_X509_NAME_ENTRY;
DECLARE_STACK_OF(STACK_OF_X509_NAME_ENTRY);
DECLARE_STACK_OF(STACK_OF_X509_NAME_ENTRY)

static int x509_name_ex_d2i(ASN1_VALUE **val,
				const unsigned char **in, long len,
+1 −1
Original line number Diff line number Diff line
@@ -241,7 +241,7 @@ void _CONF_free_data(CONF *conf)
static void value_free_hash_doall_arg(CONF_VALUE *a, LHASH_OF(CONF_VALUE) *conf)
	{
	if (a->name != NULL)
		lh_CONF_VALUE_delete(conf,a);
		(void)lh_CONF_VALUE_delete(conf,a);
	}

static void value_free_stack_doall(CONF_VALUE *a)
+1 −1
Original line number Diff line number Diff line
@@ -157,7 +157,7 @@ int engine_table_register(ENGINE_TABLE **table, ENGINE_CLEANUP_CB *cleanup,
				goto end;
				}
			fnd->funct = NULL;
			lh_ENGINE_PILE_insert(&(*table)->piles, fnd);
			(void)lh_ENGINE_PILE_insert(&(*table)->piles, fnd);
			}
		/* A registration shouldn't add duplciate entries */
		(void)sk_ENGINE_delete_ptr(fnd->sk, e);
Loading