Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Compiling Verilator with GCC 4.7.0 generates the following error:
../V3Clean.cpp: In member function â€˜void CleanVisitor::setCppWidth(AstNode*)â€™:
I provide a patch which corrects this.
In addition I have taken the opportunity to tidy up the following warnings, all due to using false instead of NULL.
../V3PreProc.cpp: In member function â€˜FileLine* V3PreProcImp::defFileline(const string&)â€™:
../V3Cdc.cpp:363:48: warning: converting â€˜falseâ€™ to pointer type â€˜CdcEitherVertexâ€™ [-Wconversion-null]
../V3Tristate.cpp: In member function â€˜virtual void TristateVisitor::visit(AstNodeModule*, AstNUser*)â€™:
This should prevent future GCC hassles as it gets ever stricter on the C/C++ standard. Please pull the patch from github: