Remove some compile warnings
This commit is contained in:
parent
0a4d8acefb
commit
15379f1750
|
|
@ -3885,7 +3885,9 @@ NetExpr* PEIdent::elaborate_expr_net_part_(Design*des, NetScope*scope,
|
|||
unsigned long lwid, mwid;
|
||||
bool lrc;
|
||||
lrc = net->sig()->sb_to_slice(prefix_indices, lsv, loff, lwid);
|
||||
ivl_assert(*this, lrc);
|
||||
lrc = net->sig()->sb_to_slice(prefix_indices, msv, moff, mwid);
|
||||
ivl_assert(*this, lrc);
|
||||
|
||||
if (moff > loff) {
|
||||
sb_lsb = loff;
|
||||
|
|
|
|||
|
|
@ -311,7 +311,7 @@ NetAssign_* PEIdent::elaborate_lval(Design*des,
|
|||
return lv;
|
||||
}
|
||||
|
||||
NetAssign_* PEIdent::elaborate_lval_method_class_member_(Design*des,
|
||||
NetAssign_* PEIdent::elaborate_lval_method_class_member_(Design*,
|
||||
NetScope*scope) const
|
||||
{
|
||||
if (!gn_system_verilog())
|
||||
|
|
@ -617,7 +617,9 @@ bool PEIdent::elaborate_lval_net_part_(Design*des,
|
|||
bool lrc;
|
||||
unsigned long tmp_lwid, tmp_mwid;
|
||||
lrc = reg->sb_to_slice(prefix_indices,lsb, loff, tmp_lwid);
|
||||
ivl_assert(*this, lrc);
|
||||
lrc = reg->sb_to_slice(prefix_indices,msb, moff, tmp_mwid);
|
||||
ivl_assert(*this, lrc);
|
||||
|
||||
if (loff < moff) {
|
||||
moff = moff + tmp_mwid - 1;
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ ivl_type_s* atom2_type_t::elaborate_type(Design*des, NetScope*) const
|
|||
}
|
||||
}
|
||||
|
||||
ivl_type_s* class_type_t::elaborate_type(Design*des, NetScope*scope) const
|
||||
ivl_type_s* class_type_t::elaborate_type(Design*, NetScope*scope) const
|
||||
{
|
||||
return scope->find_class(name);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012 Stephen Williams (steve@icarus.com)
|
||||
* Copyright (c) 2012-2013 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
|
||||
|
|
@ -21,7 +21,7 @@
|
|||
# include "parse_misc.h"
|
||||
# include "ivl_assert.h"
|
||||
|
||||
static void pform_set_string_type(string_type_t*string_type, perm_string name, NetNet::Type net_type, list<named_pexpr_t>*attr)
|
||||
static void pform_set_string_type(string_type_t*, perm_string name, NetNet::Type net_type, list<named_pexpr_t>*attr)
|
||||
{
|
||||
PWire*net = pform_get_make_wire_in_scope(name, net_type, NetNet::NOT_A_PORT, IVL_VT_STRING);
|
||||
pform_bind_attributes(net->attributes, attr, true);
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2011 Stephen Williams (steve@icarus.com)
|
||||
* Copyright (c) 2011-2013 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
|
||||
|
|
@ -119,7 +119,7 @@ bool ExpAttribute::evaluate(Entity*, Architecture*arc, int64_t&val) const
|
|||
* I don't yet know how to evaluate concatenations. It is not likely
|
||||
* to come up anyhow.
|
||||
*/
|
||||
bool ExpConcat::evaluate(ScopeBase*scope, int64_t&val) const
|
||||
bool ExpConcat::evaluate(ScopeBase*, int64_t&) const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -828,7 +828,7 @@ void vvp_wire_real::get_signal_value(struct t_vpi_value*vp)
|
|||
real_signal_value(vp, real_value());
|
||||
}
|
||||
|
||||
void vvp_fun_signal_string_aa::get_signal_value(struct t_vpi_value*vp)
|
||||
void vvp_fun_signal_string_aa::get_signal_value(struct t_vpi_value*)
|
||||
{
|
||||
assert(0);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -168,11 +168,11 @@ struct vthread_s {
|
|||
private:
|
||||
enum { STACK_OBJ_MAX_SIZE = 32 };
|
||||
vvp_object_t stack_obj_[STACK_OBJ_MAX_SIZE];
|
||||
int stack_obj_size_;
|
||||
unsigned stack_obj_size_;
|
||||
public:
|
||||
inline vvp_object_t& peek_object(void)
|
||||
{
|
||||
assert(stack_obj_size_ > 0);
|
||||
assert(stack_obj_size_ > 0);
|
||||
return stack_obj_[stack_obj_size_-1];
|
||||
}
|
||||
inline void pop_object(vvp_object_t&obj)
|
||||
|
|
|
|||
Loading…
Reference in New Issue