aboutsummaryrefslogtreecommitdiffstats
path: root/src/options.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-06-07 04:44:51 +0200
committerTristan Gingold <tgingold@free.fr>2022-06-07 04:44:51 +0200
commitd122be7d9b90f4cad3905f95d9e1f4560ddde9c5 (patch)
tree7b3d929538fa7c148f747495440cdde05b25c143 /src/options.adb
parent2d07656ec86b5bb4348de6dd2d057105de60a149 (diff)
downloadghdl-d122be7d9b90f4cad3905f95d9e1f4560ddde9c5.tar.gz
ghdl-d122be7d9b90f4cad3905f95d9e1f4560ddde9c5.tar.bz2
ghdl-d122be7d9b90f4cad3905f95d9e1f4560ddde9c5.zip
options.adb: add commands
Diffstat (limited to 'src/options.adb')
-rw-r--r--src/options.adb4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/options.adb b/src/options.adb
index 9cf591d59..019817ca3 100644
--- a/src/options.adb
+++ b/src/options.adb
@@ -68,7 +68,7 @@ package body Options is
function Option_Warning (Opt: String; Val : Boolean) return Option_State is
begin
- -- Handle -Werror.
+ -- Handle -Werror and -Wno-error
if Opt = "error" then
Warning_Error (Msgid_Warning, Val);
for I in Msgid_Warnings loop
@@ -77,7 +77,7 @@ package body Options is
return Option_Ok;
end if;
- -- Handle -Werror=xxx
+ -- Handle -Werror=xxx and -Wno-error=xxx
if Opt'Length >= 6
and then Opt (Opt'First .. Opt'First + 5) = "error="
then