]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Cleanup code for unreferenced variables
authorPiotr Trojanek <trojanek@adacore.com>
Tue, 23 Aug 2022 13:59:32 +0000 (15:59 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Fri, 4 Nov 2022 13:47:30 +0000 (14:47 +0100)
commit31392801794f057dab9df4b3f4cd7b516210c199
tree57cd4d9200b8468ddb67d46f0274aca8061a522f
parent72baa4e2b7f8dfdb2c49950e12a397ef00d3bc16
ada: Cleanup code for unreferenced variables

Further cleanups related to warnings about unreferenced objects.

gcc/ada/

* sem_warn.adb (Check_References): Remove useless query for "spec"
of a variable; refactor nested if-statements into a single
condition.
gcc/ada/sem_warn.adb