Remove some more warnings in pform.cc Ubuntu 11.10 (gcc/clang)

Remove a few more warnings from the gcc and clang compilers on
Ubuntu 11.10.
This commit is contained in:
Cary R 2012-02-22 17:26:14 -08:00
parent 952b84fba3
commit bae02433b7
1 changed files with 1 additions and 3 deletions

View File

@ -413,7 +413,7 @@ data_type_t* pform_test_type_identifier(const char*txt)
// If there is no lexical_scope yet, then there is NO WAY the
// identifier can be a type_identifier.
if (lexical_scope == 0)
return false;
return 0;
perm_string name = lex_strings.make(txt);
map<perm_string,data_type_t*>::iterator cur = lexical_scope->typedefs.find(name);
@ -1972,9 +1972,7 @@ void pform_makewire(const vlltype&li, perm_string name,
{
PWire*cur = pform_get_or_make_wire(li, name, type, pt, dt);
bool new_wire_flag = false;
if (! cur) {
new_wire_flag = true;
cur = new PWire(name, type, pt, dt);
FILE_NAME(cur, li.text, li.first_line);
}