mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-13 04:28:18 +00:00
Fixed clang (svn trunk) warnings
This commit is contained in:
parent
e4cf604ffd
commit
f41378af8c
|
@ -71,7 +71,7 @@ struct Frontend : Pass
|
||||||
|
|
||||||
std::string frontend_name;
|
std::string frontend_name;
|
||||||
Frontend(std::string name, std::string short_help = "** document me **");
|
Frontend(std::string name, std::string short_help = "** document me **");
|
||||||
virtual void run_register();
|
virtual void run_register() YS_OVERRIDE;
|
||||||
virtual ~Frontend();
|
virtual ~Frontend();
|
||||||
virtual void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE YS_FINAL;
|
virtual void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE YS_FINAL;
|
||||||
virtual void execute(std::istream *&f, std::string filename, std::vector<std::string> args, RTLIL::Design *design) = 0;
|
virtual void execute(std::istream *&f, std::string filename, std::vector<std::string> args, RTLIL::Design *design) = 0;
|
||||||
|
@ -87,7 +87,7 @@ struct Backend : Pass
|
||||||
{
|
{
|
||||||
std::string backend_name;
|
std::string backend_name;
|
||||||
Backend(std::string name, std::string short_help = "** document me **");
|
Backend(std::string name, std::string short_help = "** document me **");
|
||||||
virtual void run_register();
|
virtual void run_register() YS_OVERRIDE;
|
||||||
virtual ~Backend();
|
virtual ~Backend();
|
||||||
virtual void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE YS_FINAL;
|
virtual void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE YS_FINAL;
|
||||||
virtual void execute(std::ostream *&f, std::string filename, std::vector<std::string> args, RTLIL::Design *design) = 0;
|
virtual void execute(std::ostream *&f, std::string filename, std::vector<std::string> args, RTLIL::Design *design) = 0;
|
||||||
|
|
|
@ -43,8 +43,6 @@ LibertyAst::~LibertyAst()
|
||||||
|
|
||||||
LibertyAst *LibertyAst::find(std::string name)
|
LibertyAst *LibertyAst::find(std::string name)
|
||||||
{
|
{
|
||||||
if (this == NULL)
|
|
||||||
return NULL;
|
|
||||||
for (auto child : children)
|
for (auto child : children)
|
||||||
if (child->id == name)
|
if (child->id == name)
|
||||||
return child;
|
return child;
|
||||||
|
|
Loading…
Reference in a new issue