From 2ac3808f465ec736a1359d35426fb49c1dfe58dd Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sun, 23 Sep 2018 07:17:45 +0200 Subject: Add -Wothers warning. --- src/options.adb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/options.adb') diff --git a/src/options.adb b/src/options.adb index 43f68bbb5..f200d1c71 100644 --- a/src/options.adb +++ b/src/options.adb @@ -112,7 +112,7 @@ package body Options is elsif Opt'Length > 7 and then Opt (1 .. 7) = "--warn-" then return Option_Warning (Opt (8 .. Opt'Last), True); elsif Opt'Length > 5 and then Opt (1 .. 5) = "-Wno-" then - -- Handle -Wno before -W! + -- Handle -Wno-xxx before -Wxxx return Option_Warning (Opt (6 .. Opt'Last), False); elsif Opt'Length > 2 and then Opt (1 .. 2) = "-W" then return Option_Warning (Opt (3 .. Opt'Last), True); -- cgit v1.2.3