ada: Cleanup code for warnings about unset references
authorPiotr Trojanek <trojanek@adacore.com>
Tue, 23 Aug 2022 10:57:35 +0000 (12:57 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Fri, 4 Nov 2022 13:47:30 +0000 (14:47 +0100)
commit72baa4e2b7f8dfdb2c49950e12a397ef00d3bc16
tree62d16a39657a2468227972152b990b0caea1c7cd
parent7e1fe87899932e2c265fd0a13b2ac552b0865e0f
ada: Cleanup code for warnings about unset references

Cleanup related to new checks for unset references.

gcc/ada/

* sem_util.adb
(In_Pragma_Expression): Add standard guard against searching too
far.
(In_Quantified_Expression): Likewise.
* sem_warn.adb
(May_Need_Initialized_Actual): Remove redundant parens.
(Check_References): Remove guard that duplicates a condition from
the enclosing if-statement; only assign E1T variable when
necessary.
(Within_Postcondition): Fix layout.
(No_Warn_On_In_Out): Balance parens in comment.
gcc/ada/sem_util.adb
gcc/ada/sem_warn.adb