]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Fix missing tag for with of an obsolescent function
authorPiotr Trojanek <trojanek@adacore.com>
Wed, 7 Sep 2022 13:01:16 +0000 (15:01 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 7 Nov 2022 08:36:29 +0000 (09:36 +0100)
Fix minor inconsistency in tags of warnings about obsolescent entities.

Part of cleaning up the warnings machinery to better handle references
to unset objects.

gcc/ada/

* sem_warn.adb (Output_Obsolescent_Entity_Warnings): Tag warnings
about obsolescent functions just like we tag similar warnings for
packages and procedures.

gcc/ada/sem_warn.adb

index 77d58211b501d0db6607e5d4ba46f3167b75046a..83b9b20b44e6bf220df961891f17b959f0f3d624 100644 (file)
@@ -3146,7 +3146,7 @@ package body Sem_Warn is
               ("?j?with of obsolescent procedure& declared#", N, E);
          else
             Error_Msg_NE
-              ("??with of obsolescent function& declared#", N, E);
+              ("?j?with of obsolescent function& declared#", N, E);
          end if;
 
       --  If we do not have a with clause, then ignore any reference to an