Commit 0ae84753 by Robert Dewar Committed by Geert Bosch

* errout.adb: Minor reformatting

From-SVN: r47640
parent 63db260e
2001-12-04 Robert Dewar <dewar@gnat.com> 2001-12-04 Robert Dewar <dewar@gnat.com>
* errout.adb: Minor reformatting
2001-12-04 Robert Dewar <dewar@gnat.com>
* exp_util.adb: Minor reformatting from last change * exp_util.adb: Minor reformatting from last change
* errout.adb (Check_For_Warning): For a Raised_Constraint_Error node * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
......
...@@ -1937,8 +1937,6 @@ package body Errout is ...@@ -1937,8 +1937,6 @@ package body Errout is
Traverse_Func (Check_For_Warning); Traverse_Func (Check_For_Warning);
-- This defines the traversal operation -- This defines the traversal operation
Discard : Traverse_Result;
----------------------- -----------------------
-- Check_For_Warning -- -- Check_For_Warning --
----------------------- -----------------------
...@@ -1951,6 +1949,10 @@ package body Errout is ...@@ -1951,6 +1949,10 @@ package body Errout is
-- Returns True for a message that is to be removed. Also adjusts -- Returns True for a message that is to be removed. Also adjusts
-- warning count appropriately. -- warning count appropriately.
-------------------
-- To_Be_Removed --
-------------------
function To_Be_Removed (E : Error_Msg_Id) return Boolean is function To_Be_Removed (E : Error_Msg_Id) return Boolean is
begin begin
if E /= No_Error_Msg if E /= No_Error_Msg
...@@ -1984,7 +1986,6 @@ package body Errout is ...@@ -1984,7 +1986,6 @@ package body Errout is
if Nkind (N) = N_Raise_Constraint_Error if Nkind (N) = N_Raise_Constraint_Error
and then Original_Node (N) /= N and then Original_Node (N) /= N
then then
-- Warnings may have been posted on subexpressions of -- Warnings may have been posted on subexpressions of
-- the original tree. We temporarily replace the raise -- the original tree. We temporarily replace the raise
-- statement with the original expression to remove -- statement with the original expression to remove
...@@ -1992,7 +1993,7 @@ package body Errout is ...@@ -1992,7 +1993,7 @@ package body Errout is
-- any node in the current tree. -- any node in the current tree.
declare declare
Old : Node_Id := N; Old : Node_Id := N;
Status : Traverse_Result; Status : Traverse_Result;
begin begin
...@@ -2011,7 +2012,11 @@ package body Errout is ...@@ -2011,7 +2012,11 @@ package body Errout is
begin begin
if Warnings_Detected /= 0 then if Warnings_Detected /= 0 then
Discard := Check_All_Warnings (N); declare
Discard : Traverse_Result;
begin
Discard := Check_All_Warnings (N);
end;
end if; end if;
end Remove_Warning_Messages; end Remove_Warning_Messages;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment