summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingold2006-04-04 21:48:23 +0000
committergingold2006-04-04 21:48:23 +0000
commit024122adc0a5dba2fce2110dceb9ad4378031839 (patch)
treeb28e1eda01fe3b2fd22ded5e5a3ebea5a1170bf6
parent6b6c24061f574e4dd5ece78ed78632c28da0b090 (diff)
downloadghdl-024122adc0a5dba2fce2110dceb9ad4378031839.tar.gz
ghdl-024122adc0a5dba2fce2110dceb9ad4378031839.tar.bz2
ghdl-024122adc0a5dba2fce2110dceb9ad4378031839.zip
handle --warn-no-
-rw-r--r--flags.adb4
1 files changed, 2 insertions, 2 deletions
diff --git a/flags.adb b/flags.adb
index 73a1454..9007df8 100644
--- a/flags.adb
+++ b/flags.adb
@@ -76,10 +76,10 @@ package body Flags is
Libraries.Add_Library_Path (Opt (Beg + 2 .. Opt'Last));
elsif Opt'Length > 10 and then Opt (Beg .. Beg + 9) = "--workdir=" then
Libraries.Set_Work_Library_Path (Opt (Beg + 10 .. Opt'Last));
- elsif Opt'Length > 7 and then Opt (Beg .. Beg + 6) = "--warn-" then
- return Option_Warning (Opt (Beg + 7 .. Opt'Last), True);
elsif Opt'Length > 10 and then Opt (Beg .. Beg + 9) = "--warn-no-" then
return Option_Warning (Opt (Beg + 10 .. Opt'Last), False);
+ elsif Opt'Length > 7 and then Opt (Beg .. Beg + 6) = "--warn-" then
+ return Option_Warning (Opt (Beg + 7 .. Opt'Last), True);
elsif Opt'Length > 7 and then Opt (Beg .. Beg + 6) = "--work=" then
declare
use Name_Table;