aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-09-06 02:45:11 +0200
committerTristan Gingold <tgingold@free.fr>2019-09-06 02:45:11 +0200
commit8c8691504466dd345891b02aee111ab5076f082f (patch)
treeee4f28c3eb88e6255e36d8c52449f639fbe8801a
parentbffc53212d0bd2426cb39f5445c9c6b080508a2f (diff)
downloadghdl-8c8691504466dd345891b02aee111ab5076f082f.tar.gz
ghdl-8c8691504466dd345891b02aee111ab5076f082f.tar.bz2
ghdl-8c8691504466dd345891b02aee111ab5076f082f.zip
vhdl: fix unused warning on protected variable.
Fix ghdl/ghdl-language-server#27
-rw-r--r--src/vhdl/vhdl-sem_names.adb1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vhdl/vhdl-sem_names.adb b/src/vhdl/vhdl-sem_names.adb
index 63388c777..e6122ea58 100644
--- a/src/vhdl/vhdl-sem_names.adb
+++ b/src/vhdl/vhdl-sem_names.adb
@@ -569,6 +569,7 @@ package body Vhdl.Sem_Names is
return;
end if;
Set_Method_Object (Call, Obj);
+ Set_Use_Flag (Obj, True);
end if;
end Name_To_Method_Object;