Commit 1edfb10a by Bob Duff Committed by Pierre-Marie de Rodat

[Ada] Suppress unused warnings in the presence of errors

2019-12-16  Bob Duff  <duff@adacore.com>

gcc/ada/

	* errout.adb (Handle_Serious_Error): Disable the above-mentioned
	warnings.

From-SVN: r279441
parent 495cdc79
2019-12-16 Bob Duff <duff@adacore.com>
* errout.adb (Handle_Serious_Error): Disable the above-mentioned
warnings.
2019-12-16 Bob Duff <duff@adacore.com>
* errout.adb, errout.ads: Improve comments.
2019-12-16 Bob Duff <duff@adacore.com>
......
......@@ -861,6 +861,14 @@ package body Errout is
end if;
end;
end if;
-- Disable warnings on unused use clauses and the like. Otherwise, an
-- error might hide a reference to an entity in a used package, so
-- after fixing the error, the use clause no longer looks like it was
-- unused.
Check_Unreferenced := False;
Check_Unreferenced_Formals := False;
end Handle_Serious_Error;
-- Start of processing for Error_Msg_Internal
......
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