Fixed clang (svn trunk) warnings
authorClifford Wolf <clifford@clifford.at>
Wed, 18 Feb 2015 13:54:22 +0000 (14:54 +0100)
committerClifford Wolf <clifford@clifford.at>
Wed, 18 Feb 2015 13:54:22 +0000 (14:54 +0100)
kernel/register.h
passes/techmap/libparse.cc

index 71ab6ea6ea6919e78f484b1003df4a5d5ba4807a..0a10483fd8a12c1f0449539917037c29c411535c 100644 (file)
@@ -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<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;
@@ -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<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;
index 50d31ab5acac834a461366d05d9876af4feddee9..f84ce4802e608d15d28ade94b6c5f141ac7bff7e 100644 (file)
@@ -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;