From 90944ba921c59996c0d49d15a0f4b4ba15dac9a6 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Mon, 18 Jun 2007 14:05:48 +0000 Subject: [PATCH] fixed warnings [r14601] --- ir/tv/fltcalc.c | 1 + ir/tv/tv.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ir/tv/fltcalc.c b/ir/tv/fltcalc.c index aaec0484d..db144759c 100644 --- a/ir/tv/fltcalc.c +++ b/ir/tv/fltcalc.c @@ -897,6 +897,7 @@ int fc_get_buffer_length(void) char* fc_val_from_str(const char *str, unsigned int len, char exp_size, char mant_size, char *result) { + (void) len; #if 0 enum { START, diff --git a/ir/tv/tv.c b/ir/tv/tv.c index d00a05c43..f7a8f22b3 100644 --- a/ir/tv/tv.c +++ b/ir/tv/tv.c @@ -330,7 +330,7 @@ int tarval_is_long(tarval *tv) { if (sort != irms_int_number && sort != irms_character) return 0; - if (get_mode_size_bits(tv->mode) > (sizeof(long) << 3)) { + if (get_mode_size_bits(tv->mode) > (int) (sizeof(long) << 3)) { /* the value might be too big to fit in a long */ sc_max_from_bits(sizeof(long) << 3, 0, NULL); if (sc_comp(sc_get_buffer(), tv->value) == -1) { @@ -1438,7 +1438,7 @@ int tarval_printf(tarval *tv) { int res; res = tarval_snprintf(buf, sizeof(buf), tv); - assert(res < sizeof(buf) && "buffer to small for tarval_snprintf"); + assert(res < (int) sizeof(buf) && "buffer to small for tarval_snprintf"); printf(buf); return res; } -- 2.20.1