Fix some unreachable code warnings.
This patch fixes three unreachable code warnings reported by the Sun compiler. It also simplifies one of the files in the process.
This commit is contained in:
parent
22f91d2d34
commit
9613c269d2
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003-2009 Stephen Williams (steve@icarus.com)
|
||||
* Copyright (c) 2003-2010 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
|
||||
|
|
@ -56,14 +56,11 @@ PLI_INT32 acc_fetch_type(handle obj)
|
|||
|
||||
case vpiModule:
|
||||
return accModule;
|
||||
|
||||
default:
|
||||
vpi_printf("acc_fetch_type: vpiType %d is what accType?\n",
|
||||
(int)vpi_get(vpiType, obj));
|
||||
return accUnknown;
|
||||
}
|
||||
|
||||
return 0;
|
||||
vpi_printf("acc_fetch_type: vpiType %d is what accType?\n",
|
||||
(int)vpi_get(vpiType, obj));
|
||||
return accUnknown;
|
||||
}
|
||||
|
||||
PLI_INT32 acc_fetch_fulltype(handle obj)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003-2009 Stephen Williams (steve@icarus.com)
|
||||
* Copyright (c) 2003-2010 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
|
||||
|
|
@ -36,11 +36,8 @@ char* acc_fetch_type_str(PLI_INT32 type)
|
|||
|
||||
case accConstant:
|
||||
return "accConstant";
|
||||
|
||||
default:
|
||||
vpi_printf("XXXX acc_fetch_type_str(%d);\n", (int)type);
|
||||
return "acc_fetch_type_str(unknown)";
|
||||
}
|
||||
|
||||
return "";
|
||||
vpi_printf("acc_fetch_type_str: type %d is what accType?\n", (int)type);
|
||||
return "acc_fetch_type_str(unknown)";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -643,19 +643,11 @@ static int show_stmt_assign(ivl_statement_t net)
|
|||
lval = ivl_stmt_lval(net, 0);
|
||||
|
||||
sig = ivl_lval_sig(lval);
|
||||
if (sig) switch (ivl_signal_data_type(sig)) {
|
||||
|
||||
case IVL_VT_REAL:
|
||||
if (sig && (ivl_signal_data_type(sig) == IVL_VT_REAL)) {
|
||||
return show_stmt_assign_sig_real(net);
|
||||
|
||||
default:
|
||||
return show_stmt_assign_vector(net);
|
||||
|
||||
} else {
|
||||
return show_stmt_assign_vector(net);
|
||||
}
|
||||
|
||||
return 0;
|
||||
return show_stmt_assign_vector(net);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue