Fix erroneous ifndef-NDEBUG in verific.cc
authorClifford Wolf <clifford@clifford.at>
Sat, 17 Aug 2019 12:47:02 +0000 (14:47 +0200)
committerClifford Wolf <clifford@clifford.at>
Sat, 17 Aug 2019 12:49:55 +0000 (14:49 +0200)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
frontends/verific/verific.cc

index 64152c9cb2ceb807fa8c7d4f8ac6befc33f43733..c5eef4b559c33317d905d77c25da11f722d273b5 100644 (file)
@@ -1789,10 +1789,8 @@ struct VerificExtNets
                                new_net = new Net(name.c_str());
                                nl->Add(new_net);
 
-                       #ifndef NDEBUG
-                               Net *n = route_up(new_net, port->IsOutput(), ca_nl, ca_net);
+                               Net *n YS_ATTRIBUTE(unused) = route_up(new_net, port->IsOutput(), ca_nl, ca_net);
                                log_assert(n == ca_net);
-                       #endif
                        }
 
                        if (verific_verbose)