Add -Wstrict-prototypes to CFLAGS

... and patch vpi/sys_lxt.c so no new warnings are triggered.
This commit is contained in:
Larry Doolittle 2015-02-24 11:30:21 -08:00 committed by Cary R
parent f1436fbe62
commit 3c38b2972d
2 changed files with 4 additions and 4 deletions

View File

@ -82,7 +82,7 @@ CFLAGS="$iverilog_temp_cflags"
AC_SUBST(DEPENDENCY_FLAG, [-MD]) AC_SUBST(DEPENDENCY_FLAG, [-MD])
AC_SUBST(WARNING_FLAGS, ["-Wall $iverilog_wextra_flag -Wshadow"]) AC_SUBST(WARNING_FLAGS, ["-Wall $iverilog_wextra_flag -Wshadow"])
AC_SUBST(WARNING_FLAGS_CC, [""]) AC_SUBST(WARNING_FLAGS_CC, ["-Wstrict-prototypes"])
AC_SUBST(WARNING_FLAGS_CXX, [""]) AC_SUBST(WARNING_FLAGS_CXX, [""])
fi fi

View File

@ -206,7 +206,7 @@ __inline__ static int dump_header_pending(void)
* This function writes out all the traced variables, whether they * This function writes out all the traced variables, whether they
* changed or not. * changed or not.
*/ */
static void vcd_checkpoint() static void vcd_checkpoint(void)
{ {
struct vcd_info*cur; struct vcd_info*cur;
@ -214,7 +214,7 @@ static void vcd_checkpoint()
show_this_item(cur); show_this_item(cur);
} }
static void vcd_checkpoint_x() static void vcd_checkpoint_x(void)
{ {
struct vcd_info*cur; struct vcd_info*cur;
@ -787,7 +787,7 @@ static PLI_INT32 sys_dumpvars_calltf(ICARUS_VPI_CONST PLI_BYTE8*name)
return 0; return 0;
} }
void sys_lxt_register() void sys_lxt_register(void)
{ {
int idx; int idx;
struct t_vpi_vlog_info vlog_info; struct t_vpi_vlog_info vlog_info;