From 1f3381ea54a35ee58097c13e66ca05d4f6f48d1c Mon Sep 17 00:00:00 2001 From: oronpo Date: Tue, 1 Oct 2024 14:27:47 +0300 Subject: [PATCH] generalized nvc warning suppression to any shared variable name --- lib/src/main/scala/dfhdl/tools/toolsCore/NVC.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/main/scala/dfhdl/tools/toolsCore/NVC.scala b/lib/src/main/scala/dfhdl/tools/toolsCore/NVC.scala index 280b3dc9d..df5a5c754 100644 --- a/lib/src/main/scala/dfhdl/tools/toolsCore/NVC.scala +++ b/lib/src/main/scala/dfhdl/tools/toolsCore/NVC.scala @@ -67,7 +67,7 @@ object NVC extends VHDLLinter: val warningSuppressLogger = ProcessLogger( (out: String) => println(out), // stdout - print directly (err: String) => - if (err.startsWith("** Warning: shared variable RAM must have protected type")) + if (err.matches(".*Warning: shared variable .* must have protected type")) // Start accumulating lines that belong to the warning insideWarning = true warningBuffer += err