diff --git a/configure.in b/configure.in index de2a76f75..3780aaaca 100644 --- a/configure.in +++ b/configure.in @@ -82,7 +82,7 @@ CFLAGS="$iverilog_temp_cflags" AC_SUBST(DEPENDENCY_FLAG, [-MD]) AC_SUBST(WARNING_FLAGS, ["-Wall $iverilog_wextra_flag -Wshadow"]) -AC_SUBST(WARNING_FLAGS_CC, ["-Wno-unused -Wno-sign-compare -Wno-type-limits"]) +AC_SUBST(WARNING_FLAGS_CC, ["-Wno-unused -Wno-sign-compare"]) AC_SUBST(WARNING_FLAGS_CXX, [""]) fi diff --git a/ivlpp/lexor.lex b/ivlpp/lexor.lex index f7073b58d..0fa66e41f 100644 --- a/ivlpp/lexor.lex +++ b/ivlpp/lexor.lex @@ -1,7 +1,7 @@ %option prefix="yy" %{ /* - * Copyright (c) 1999-2013 Stephen Williams (steve@icarus.com) + * Copyright (c) 1999-2014 Stephen Williams (steve@icarus.com) * * This source code is free software; you can redistribute it * and/or modify it in source code form under the terms of the GNU @@ -852,7 +852,7 @@ static void def_add_arg(void) char*arg = yytext; char*val; - int val_length; + int val_length = 0; /* Break into ARG = value. This happens if the source specifies a default value for the formal argument. In that case, the diff --git a/tgt-vvp/vector.c b/tgt-vvp/vector.c index 6dce423d0..c1142e308 100644 --- a/tgt-vvp/vector.c +++ b/tgt-vvp/vector.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002-2010 Stephen Williams (steve@icarus.com) + * Copyright (c) 2002-2014 Stephen Williams (steve@icarus.com) * * This source code is free software; you can redistribute it * and/or modify it in source code form under the terms of the GNU @@ -33,7 +33,7 @@ static struct allocation_score_s { unsigned exp_bit : 24; unsigned sig_bit : 24; unsigned alloc : 8; -} allocation_map[MAX_VEC] = { {0} }; +} allocation_map[MAX_VEC] = { {0, 0, 0, 0, 0, 0} }; /* This is the largest bit to have lookaside values. */ static unsigned lookaside_top = 0; diff --git a/vpi/sys_random_mti.c b/vpi/sys_random_mti.c index 8a20c6164..82e9e4dd1 100644 --- a/vpi/sys_random_mti.c +++ b/vpi/sys_random_mti.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000-2010 Stephen Williams (steve@icarus.com) + * Copyright (c) 2000-2014 Stephen Williams (steve@icarus.com) * * This source code is free software; you can redistribute it * and/or modify it in source code form under the terms of the GNU @@ -37,13 +37,7 @@ /* Icarus seed cookie */ #define COOKIE 0x1ca1ca1c -static struct context_s global_context = { -#if defined(__GCC__) - .mti = -#else - /* For MSVC simply use the fact that mti is located first */ -#endif - NP1 }; +static struct context_s global_context = {NP1, {0} }; static long mti_dist_uniform(long*seed, long start, long end) {