From f41378af8c463f2f49f3a04bcbc39419b83c9553 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Wed, 18 Feb 2015 14:54:22 +0100 Subject: [PATCH] Fixed clang (svn trunk) warnings --- kernel/register.h | 4 ++-- passes/techmap/libparse.cc | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/kernel/register.h b/kernel/register.h index 71ab6ea6e..0a10483fd 100644 --- a/kernel/register.h +++ b/kernel/register.h @@ -71,7 +71,7 @@ struct Frontend : Pass std::string frontend_name; Frontend(std::string name, std::string short_help = "** document me **"); - virtual void run_register(); + virtual void run_register() YS_OVERRIDE; virtual ~Frontend(); virtual void execute(std::vector args, RTLIL::Design *design) YS_OVERRIDE YS_FINAL; virtual void execute(std::istream *&f, std::string filename, std::vector args, RTLIL::Design *design) = 0; @@ -87,7 +87,7 @@ struct Backend : Pass { std::string backend_name; Backend(std::string name, std::string short_help = "** document me **"); - virtual void run_register(); + virtual void run_register() YS_OVERRIDE; virtual ~Backend(); virtual void execute(std::vector args, RTLIL::Design *design) YS_OVERRIDE YS_FINAL; virtual void execute(std::ostream *&f, std::string filename, std::vector args, RTLIL::Design *design) = 0; diff --git a/passes/techmap/libparse.cc b/passes/techmap/libparse.cc index 50d31ab5a..f84ce4802 100644 --- a/passes/techmap/libparse.cc +++ b/passes/techmap/libparse.cc @@ -43,8 +43,6 @@ LibertyAst::~LibertyAst() LibertyAst *LibertyAst::find(std::string name) { - if (this == NULL) - return NULL; for (auto child : children) if (child->id == name) return child;