Fix compiler warning in GCC 6.

Signed-off-by: Wilson Snyder <wsnyder@wsnyder.org>
This commit is contained in:
David Horton 2016-07-09 04:09:34 -04:00 committed by Wilson Snyder
parent 20ed1ada03
commit 31c9e26e2e
2 changed files with 3 additions and 1 deletions

View File

@ -10,6 +10,8 @@ indicates the contributor was also the author of the fix; Thanks!
**** Fix false warnings on non-power-2 enums using .next/.prev.
**** Fix compiler warning in GCC 6. [David Horton]
* Verilator 3.884 2016-05-18

View File

@ -1226,7 +1226,7 @@ VerilatedModule::VerilatedModule(const char* namep)
}
VerilatedModule::~VerilatedModule() {
if (m_namep) free((void*)m_namep); m_namep=NULL;
if (m_namep) { free((void*)m_namep); m_namep=NULL; }
}
//======================================================================