aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sem_attr.adb
diff options
context:
space:
mode:
authorBob Duff <duff@adacore.com>2022-11-07 09:25:31 -0500
committerMarc Poulhiès <poulhies@adacore.com>2022-11-14 14:46:51 +0100
commit438f878718f81302205b5241dd325bb841c8c92c (patch)
tree257239eb0a0285effb6af91c9e650d8275619a73 /gcc/ada/sem_attr.adb
parent0e194d289d4d1c9aa16d14c4b94caf11c2506da3 (diff)
downloadgcc-438f878718f81302205b5241dd325bb841c8c92c.zip
gcc-438f878718f81302205b5241dd325bb841c8c92c.tar.gz
gcc-438f878718f81302205b5241dd325bb841c8c92c.tar.bz2
ada: Remove incorrect comments about initialization
Cleanup only; no change in behavior. This patch removes and rewrites some comments regarding initialization. These initializions are needed, so there's no need to apologize for initializing these variables. Note that -gnatVa is not relevant; reads of uninitialized variables are wrong, whether or not we get caught. gcc/ada/ * atree.ads: Remove some comments. * err_vars.ads: Likewise. * scans.ads: Likewise. * sinput.ads: Likewise. * checks.ads: Likewise. Also add a "???" comment indicating an obsolete comment that is too difficult to correct at this time. * sem_attr.adb: Minor comment rewrite.
Diffstat (limited to 'gcc/ada/sem_attr.adb')
-rw-r--r--gcc/ada/sem_attr.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/sem_attr.adb b/gcc/ada/sem_attr.adb
index 5166b4b..f7c03ab 100644
--- a/gcc/ada/sem_attr.adb
+++ b/gcc/ada/sem_attr.adb
@@ -1138,7 +1138,7 @@ package body Sem_Attr is
-- pointer can be used to modify the variable, and we might
-- not detect this, leading to some junk warnings.
- -- We only do this for source references, since otherwise
+ -- We do this only for source references, since otherwise
-- we can suppress warnings, e.g. from the unrestricted
-- access generated for validity checks in -gnatVa mode.