enforsed compilation with -W -Werror


git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@10 59561ff5-6e30-0410-9f3c-9617f08c8826
diff --git a/libasn1fix/asn1fix_class.c b/libasn1fix/asn1fix_class.c
index c541fd6..f617c31 100644
--- a/libasn1fix/asn1fix_class.c
+++ b/libasn1fix/asn1fix_class.c
@@ -30,6 +30,8 @@
 	asn1p_expr_t *result;
 	asn1p_ref_t tmpref;
 
+	(void)mod_r;	/* Unused argument */
+
 	assert(ref->comp_count > 1);
 
 	DEBUG("%s(%s) for line %d", __func__,
diff --git a/libasn1fix/asn1fix_integer.c b/libasn1fix/asn1fix_integer.c
index 514ab70..c3a2a7b 100644
--- a/libasn1fix/asn1fix_integer.c
+++ b/libasn1fix/asn1fix_integer.c
@@ -114,7 +114,7 @@
 _asn1f_make_sure_type_is(arg_t *arg, asn1p_expr_t *expr, asn1p_expr_type_e type) {
 	asn1p_module_t *mod = NULL;
 	asn1p_expr_t *next_expr;
-	int expr_type;
+	asn1p_expr_type_e expr_type;
 	int ret;
 
 	expr_type = expr->expr_type;
diff --git a/libasn1fix/asn1fix_misc.c b/libasn1fix/asn1fix_misc.c
index 5fe6903..a9a5378 100644
--- a/libasn1fix/asn1fix_misc.c
+++ b/libasn1fix/asn1fix_misc.c
@@ -75,13 +75,13 @@
 		}
 	case ATV_REAL:
 		ret = snprintf(buf, sizeof(buf), "%f", v->value.v_double);
-		if(ret >= sizeof(buf))
+		if(ret >= (ssize_t)sizeof(buf))
 			memcpy(buf + sizeof(buf) - 4, "...", 4);
 		return buf;
 	case ATV_INTEGER:
 		ret = snprintf(buf, sizeof(buf), "%lld",
 			(long long)v->value.v_integer);
-		if(ret >= sizeof(buf))
+		if(ret >= (ssize_t)sizeof(buf))
 			memcpy(buf + sizeof(buf) - 4, "...", 4);
 		return buf;
 	case ATV_MIN: return "MIN";
@@ -126,7 +126,7 @@
 					*ptr++ = ((uc >> (7-(i%8)))&1)?'1':'0';
 				}
 			} else {
-				char hextable[16] = "0123456789ABCDEF";
+				static const char *hextable="0123456789ABCDEF";
 				/*
 				 * Dump byte by byte.
 				 */