diff options
| author | Tristan Gingold <tgingold@free.fr> | 2022-06-07 04:44:51 +0200 |
|---|---|---|
| committer | Tristan Gingold <tgingold@free.fr> | 2022-06-07 04:44:51 +0200 |
| commit | d122be7d9b90f4cad3905f95d9e1f4560ddde9c5 (patch) | |
| tree | 7b3d929538fa7c148f747495440cdde05b25c143 | |
| parent | 2d07656ec86b5bb4348de6dd2d057105de60a149 (diff) | |
| download | ghdl-d122be7d9b90f4cad3905f95d9e1f4560ddde9c5.tar.gz ghdl-d122be7d9b90f4cad3905f95d9e1f4560ddde9c5.tar.bz2 ghdl-d122be7d9b90f4cad3905f95d9e1f4560ddde9c5.zip | |
options.adb: add commands
| -rw-r--r-- | src/options.adb | 4 |
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 |
