Fix compiler warning in verific.cc
authorClifford Wolf <clifford@clifford.at>
Fri, 5 Oct 2018 07:26:10 +0000 (09:26 +0200)
committerJim Lawson <ucbjrl@berkeley.edu>
Mon, 8 Oct 2018 18:38:10 +0000 (11:38 -0700)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
frontends/verific/verific.cc

index c5fa5831332fe0c41d36f74e235eb4cd5817caff..06d98611a90965792755799cb2c24708d8fe2778 100644 (file)
@@ -1676,6 +1676,7 @@ YOSYS_NAMESPACE_END
 
 PRIVATE_NAMESPACE_BEGIN
 
+#ifdef YOSYS_ENABLE_VERIFIC
 bool check_noverific_env()
 {
        const char *e = getenv("YOSYS_NOVERIFIC");
@@ -1685,6 +1686,7 @@ bool check_noverific_env()
                return false;
        return true;
 }
+#endif
 
 struct VerificPass : public Pass {
        VerificPass() : Pass("verific", "load Verilog and VHDL designs using Verific") { }